* gtkedit/edit.h: Only include malloc.h if STDC_HEADERS is not

defined to prevent warnings on OpenBSD 2.7.
* slang/jdmacros.h: Likewise.
* src/mad.h: Likewise.
* src/poptalloca.h: Likewise.
This commit is contained in:
Pavel Roskin 2001-02-20 17:57:23 +00:00
parent 447597a790
commit 1f6ffaab0a
5 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,11 @@
2001-02-20 Pavel Roskin <proski@gnu.org> 2001-02-20 Pavel Roskin <proski@gnu.org>
* gtkedit/edit.h: Only include malloc.h if STDC_HEADERS is not
defined to prevent warnings on OpenBSD 2.7.
* slang/jdmacros.h: Likewise.
* src/mad.h: Likewise.
* src/poptalloca.h: Likewise.
* configure.in: Check for sys/time.h and sys/timeb.h. Use * configure.in: Check for sys/time.h and sys/timeb.h. Use
AC_HEADER_TIME. AC_HEADER_TIME.

View File

@ -45,7 +45,7 @@
# include <fcntl.h> # include <fcntl.h>
# include <stdlib.h> # include <stdlib.h>
# ifdef HAVE_MALLOC_H # if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H)
# include <malloc.h> # include <malloc.h>
# endif # endif

View File

@ -9,7 +9,7 @@
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_MALLOC_H #if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H)
# include <malloc.h> # include <malloc.h>
#endif #endif

View File

@ -3,7 +3,7 @@
/* To prevent molesting these files with the malloc/calloc/free macros. */ /* To prevent molesting these files with the malloc/calloc/free macros. */
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_MALLOC_H #if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H)
# include <malloc.h> # include <malloc.h>
#endif #endif

View File

@ -37,7 +37,7 @@ char *alloca ();
#ifndef HAVE_ALLOCA #ifndef HAVE_ALLOCA
# include <stdlib.h> # include <stdlib.h>
# ifdef HAVE_MALLOC_H # if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H)
# include <malloc.h> # include <malloc.h>
# endif # endif
# define alloca malloc # define alloca malloc