COMP: Try to fix major/minor problem on aix

This commit is contained in:
Andy Cedilnik 2005-12-31 10:33:29 -05:00
parent 75b6f523ab
commit ccae106177
3 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ FOREACH(file
"unistd.h"
"glob.h"
"dirent.h"
"sys/sysmacros.h"
)
CHECK_INCLUDE_FILE_CONCAT("${file}")
ENDFOREACH(file)

View File

@ -12,6 +12,9 @@
/* Define to 1 if you have the <ctype.h> header file. */
#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'. */
#cmakedefine HAVE_DEV_T @HAVE_DEV_T@

View File

@ -15,6 +15,10 @@
#include <libtar/libtar.h>
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#ifndef HAVE_MAJOR
# define major(dev) ((int)(((dev) >> 8) & 0xff))
#endif