diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-31 10:33:29 -0500 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-31 10:33:29 -0500 |
commit | ccae106177c5adf87b61d14952296ea6505b4a64 (patch) | |
tree | c4569c14c234518459fcae0bb52ce661ac349501 /Utilities | |
parent | 75b6f523ab85b9b9b256927183b4267573bbcd2e (diff) | |
download | cmake-ccae106177c5adf87b61d14952296ea6505b4a64.tar.gz |
COMP: Try to fix major/minor problem on aix
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmtar/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Utilities/cmtar/config.h.in | 3 | ||||
-rw-r--r-- | Utilities/cmtar/internal.h | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Utilities/cmtar/CMakeLists.txt b/Utilities/cmtar/CMakeLists.txt index d79052be3f..038c38c5f3 100644 --- a/Utilities/cmtar/CMakeLists.txt +++ b/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) diff --git a/Utilities/cmtar/config.h.in b/Utilities/cmtar/config.h.in index 1b34680ee8..ce87858fb7 100644 --- a/Utilities/cmtar/config.h.in +++ b/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@ diff --git a/Utilities/cmtar/internal.h b/Utilities/cmtar/internal.h index a382abd6d6..01dc9030c8 100644 --- a/Utilities/cmtar/internal.h +++ b/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 |