소스 검색

COMP: Fix build on sun by adding missing include

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

+ 1 - 0
Utilities/cmtar/CMakeLists.txt

@@ -69,6 +69,7 @@ FOREACH(file
   "inttypes.h"
   "libgen.h"
   "memory.h"
+  "sys/mkdev.h"
   "stdint.h"
   "stdlib.h"
   "stdio.h"

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

@@ -54,6 +54,9 @@
 /* Define to 1 if you have the <stdlib.h> header file. */
 #cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@
 
+/* Define to 1 if you have the <sys/mkdev.h> header file. */
+#cmakedefine HAVE_SYS_MKDEV_H @HAVE_SYS_MKDEV_H@
+
 /* Define if you have the strdup function */
 #cmakedefine HAVE_STRDUP @HAVE_STRDUP@
 

+ 4 - 0
Utilities/cmtar/extract.c

@@ -34,6 +34,10 @@
 # include <unistd.h>
 #endif
 
+#ifdef HAVE_SYS_MKDEV_H
+# include <sys/mkdev.h>
+#endif
+
 
 struct linkname
 {

+ 1 - 0
Utilities/cmtar/libtar.c

@@ -28,6 +28,7 @@
 
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
+# include <stdlib.h>
 #endif
 
 #ifdef DEBUG