diff options
author | Bruno Haible <bruno@clisp.org> | 2001-10-29 09:47:34 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-10-29 09:47:34 +0000 |
commit | fea7c59622d41ad4aa82e1924ffb71885a7cf2a6 (patch) | |
tree | 41238c00716cb12cb8fcf56567b368cf5abab949 | |
parent | 7453141d6d881deeedc094d61e2a8ab20cb9f1e0 (diff) | |
download | external_gettext-fea7c59622d41ad4aa82e1924ffb71885a7cf2a6.zip external_gettext-fea7c59622d41ad4aa82e1924ffb71885a7cf2a6.tar.gz external_gettext-fea7c59622d41ad4aa82e1924ffb71885a7cf2a6.tar.bz2 |
Portability tweak of mkdtemp.c.
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | lib/mkdtemp.c | 4 | ||||
-rw-r--r-- | m4/ChangeLog | 4 | ||||
-rw-r--r-- | m4/mkdtemp.m4 | 2 |
4 files changed, 14 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 385e260..cfa0732 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 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 already been included. diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index b1a8b16..dcdfdc1 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -43,6 +43,10 @@ # include <stdint.h> #endif +#if HAVE_INTTYPES_H || _LIBC +# include <inttypes.h> +#endif + #if HAVE_UNISTD_H || _LIBC # include <unistd.h> #endif diff --git a/m4/ChangeLog b/m4/ChangeLog index 615f7d8..d9fedfe 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,5 +1,9 @@ 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} instead of $(top_builddir), so that the value can also be used in shell scripts. Note that in Makefiles both ${top_builddir} and diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index 73ce4c0..8ee7ff9 100644 --- a/m4/mkdtemp.m4 +++ b/m4/mkdtemp.m4 @@ -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) ]) |