Browse Source

fix inttypes build breakage on HP-UX

Rich Megginson 17 years ago
parent
commit
f7bc5b0691
3 changed files with 15 additions and 0 deletions
  1. 3 0
      config.h.in
  2. 10 0
      configure
  3. 2 0
      configure.ac

+ 3 - 0
config.h.in

@@ -344,6 +344,9 @@
 /* Source namespace */
 #undef _HPUX_SOURCE
 
+/* to pick up all of the printf format macros in inttypes.h */
+#undef _INCLUDE_STDC__SOURCE_199901
+
 /* POSIX revision */
 #undef _POSIX_C_SOURCE
 

+ 10 - 0
configure

@@ -23392,6 +23392,11 @@ cat >>confdefs.h <<\_ACEOF
 #define _HPUX_SOURCE 1
 _ACEOF
 
+
+cat >>confdefs.h <<\_ACEOF
+#define _INCLUDE_STDC__SOURCE_199901 1
+_ACEOF
+
     # assume 64 bit
     perlexec='/opt/perl_64/bin/perl'
     platform="hpux"
@@ -23443,6 +23448,11 @@ cat >>confdefs.h <<\_ACEOF
 #define _HPUX_SOURCE 1
 _ACEOF
 
+
+cat >>confdefs.h <<\_ACEOF
+#define _INCLUDE_STDC__SOURCE_199901 1
+_ACEOF
+
     # assume 64 bit
     initconfigdir="/$PACKAGE_NAME/config"
     perlexec='/opt/perl_64/bin/perl'

+ 2 - 0
configure.ac

@@ -300,6 +300,7 @@ case $host in
     AC_DEFINE([OS_hpux], [1], [OS HP-UX])
     AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
     AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
+    AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
     # assume 64 bit
     perlexec='/opt/perl_64/bin/perl'
     platform="hpux"
@@ -315,6 +316,7 @@ case $host in
     AC_DEFINE([OS_hpux], [1], [OS HP-UX])
     AC_DEFINE([_POSIX_C_SOURCE], [199506L], [POSIX revision])
     AC_DEFINE([_HPUX_SOURCE], [1], [Source namespace])
+    AC_DEFINE([_INCLUDE_STDC__SOURCE_199901], [1], [to pick up all of the printf format macros in inttypes.h])
     # assume 64 bit
     initconfigdir="/$PACKAGE_NAME/config"
     perlexec='/opt/perl_64/bin/perl'