Skip to content
Snippets Groups Projects
Commit ccae1061 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Try to fix major/minor problem on aix

parent 75b6f523
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,7 @@ FOREACH(file
"unistd.h"
"glob.h"
"dirent.h"
"sys/sysmacros.h"
)
CHECK_INCLUDE_FILE_CONCAT("${file}")
ENDFOREACH(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@
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment