COMP: Try to fix major/minor problem on aix
This commit is contained in:
parent
75b6f523ab
commit
ccae106177
|
@ -81,6 +81,7 @@ FOREACH(file
|
||||||
"unistd.h"
|
"unistd.h"
|
||||||
"glob.h"
|
"glob.h"
|
||||||
"dirent.h"
|
"dirent.h"
|
||||||
|
"sys/sysmacros.h"
|
||||||
)
|
)
|
||||||
CHECK_INCLUDE_FILE_CONCAT("${file}")
|
CHECK_INCLUDE_FILE_CONCAT("${file}")
|
||||||
ENDFOREACH(file)
|
ENDFOREACH(file)
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
/* Define to 1 if you have the <ctype.h> header file. */
|
/* Define to 1 if you have the <ctype.h> header file. */
|
||||||
#cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@
|
#cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/sysmacros.h> header file. */
|
||||||
|
#cmakedefine HAVE_SYS_SYSMACROS_H @HAVE_SYS_SYSMACROS_H@
|
||||||
|
|
||||||
/* Define to 1 if the system has the type `dev_t'. */
|
/* Define to 1 if the system has the type `dev_t'. */
|
||||||
#cmakedefine HAVE_DEV_T @HAVE_DEV_T@
|
#cmakedefine HAVE_DEV_T @HAVE_DEV_T@
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
|
|
||||||
#include <libtar/libtar.h>
|
#include <libtar/libtar.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_SYSMACROS_H
|
||||||
|
#include <sys/sysmacros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_MAJOR
|
#ifndef HAVE_MAJOR
|
||||||
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue