소스 검색

COMP: Try to fix major/minor problem on aix

Andy Cedilnik 20 년 전
부모
커밋
ccae106177
3개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Utilities/cmtar/CMakeLists.txt
  2. 3 0
      Utilities/cmtar/config.h.in
  3. 4 0
      Utilities/cmtar/internal.h

+ 1 - 0
Utilities/cmtar/CMakeLists.txt

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

+ 3 - 0
Utilities/cmtar/config.h.in

@@ -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@
 

+ 4 - 0
Utilities/cmtar/internal.h

@@ -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