]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability tweak of mkdtemp.c.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Oct 2001 09:47:34 +0000 (09:47 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Oct 2001 09:47:34 +0000 (09:47 +0000)
lib/ChangeLog
lib/mkdtemp.c
m4/ChangeLog
m4/mkdtemp.m4

index 385e260d10d4e827ffbb71349df7cfca1d566067..cfa07325e8e39545bedfb46b6038c4d43f68df6b 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-21  Bruno Haible  <haible@clisp.cons.org>
+
+       * mkdtemp.c: Include <inttypes.h> if it exists. Needed on platforms
+       which have <inttypes.h> but not <stdint.h>, like BeOS.
+
 2001-10-21  Bruno Haible  <haible@clisp.cons.org>
 
        * stdbool.h.in: Avoid syntax error on BeOS if <sys/socket.h> has
index b1a8b1610859360fd0fb32b3630b1c272729d69f..dcdfdc1501bfc3f863cbcbb214f950e0877e17e9 100644 (file)
 # include <stdint.h>
 #endif
 
+#if HAVE_INTTYPES_H || _LIBC
+# include <inttypes.h>
+#endif
+
 #if HAVE_UNISTD_H || _LIBC
 # include <unistd.h>
 #endif
index 615f7d8ac002828574397b37536b564d8086614b..d9fedfe5a1c9f98b44502a11af4c1ced0d0ba6ef 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-21  Bruno Haible  <haible@clisp.cons.org>
+
+       * mkdtemp.m4 (gt_FUNC_MKDTEMP): Also check for <inttypes.h>.
+
 2001-10-21  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.m4 (AM_GNU_GETTEXT): In INTLLIBS, use ${top_builddir}
index 73ce4c017039d3b01dabfefae0e4042b0106f433..8ee7ff97f020a6981b985d0a43fd659fcfeb7788 100644 (file)
@@ -6,6 +6,6 @@ AC_DEFUN([gt_FUNC_MKDTEMP],
 [
   AC_REPLACE_FUNCS(mkdtemp)
   AC_STAT_MACROS_BROKEN
-  AC_CHECK_HEADERS(fcntl.h stdint.h sys/time.h time.h unistd.h)
+  AC_CHECK_HEADERS(fcntl.h inttypes.h stdint.h sys/time.h time.h unistd.h)
   AC_CHECK_FUNCS(gettimeofday)
 ])