Commit c5d0345e by Richard Henderson Committed by Richard Henderson

configure.in: Find declaration for sbrk.

        * configure.in: Find declaration for sbrk.
        * acconfig.h (NEED_DECLARATION_SBRK): New tag.
        * config.in, configure: Rebuild.
        * mips-tfile.c: Properly protect declaration of sbrk and free.
        * toplev.c: Properly protect declaration of sbrk.

From-SVN: r17417
parent bb02e7ea
Mon Jan 19 09:38:18 1998 Richard Henderson <rth@cygnus.com>
* configure.in: Find declaration for sbrk.
* acconfig.h (NEED_DECLARATION_SBRK): New tag.
* config.in, configure: Rebuild.
* mips-tfile.c: Properly protect declaration of sbrk and free.
* toplev.c: Properly protect declaration of sbrk.
Sun Jan 18 20:18:01 1998 Richard Henderson <rth@cygnus.com> Sun Jan 18 20:18:01 1998 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_handle_trap_shadows): Ignore CLOBBERs. * alpha.c (alpha_handle_trap_shadows): Ignore CLOBBERs.
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
/* Whether free must be declared even if <stdlib.h> is included. */ /* Whether free must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_FREE #undef NEED_DECLARATION_FREE
/* Whether index must be declared even if <stdlib.h> is included. */ /* Whether index must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_INDEX #undef NEED_DECLARATION_INDEX
/* Whether rindex must be declared even if <stdlib.h> is included. */ /* Whether rindex must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_RINDEX #undef NEED_DECLARATION_RINDEX
/* Whether getenv must be declared even if <stdlib.h> is included. */ /* Whether getenv must be declared even if <stdlib.h> is included. */
...@@ -24,4 +24,7 @@ ...@@ -24,4 +24,7 @@
/* Whether atol must be declared even if <stdlib.h> is included. */ /* Whether atol must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_ATOL #undef NEED_DECLARATION_ATOL
/* Whether sbrk must be declared even if <unistd.h> is included. */
#undef NEED_DECLARATION_SBRK
@TOP@ @TOP@
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
/* Whether free must be declared even if <stdlib.h> is included. */ /* Whether free must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_FREE #undef NEED_DECLARATION_FREE
/* Whether index must be declared even if <stdlib.h> is included. */ /* Whether index must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_INDEX #undef NEED_DECLARATION_INDEX
/* Whether rindex must be declared even if <stdlib.h> is included. */ /* Whether rindex must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_RINDEX #undef NEED_DECLARATION_RINDEX
/* Whether getenv must be declared even if <stdlib.h> is included. */ /* Whether getenv must be declared even if <stdlib.h> is included. */
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
/* Whether atol must be declared even if <stdlib.h> is included. */ /* Whether atol must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_ATOL #undef NEED_DECLARATION_ATOL
/* Whether sbrk must be declared even if <unistd.h> is included. */
#undef NEED_DECLARATION_SBRK
/* Define if you have the ANSI C header files. */ /* Define if you have the ANSI C header files. */
#undef STDC_HEADERS #undef STDC_HEADERS
......
...@@ -186,6 +186,7 @@ GCC_NEED_DECLARATION(free) ...@@ -186,6 +186,7 @@ GCC_NEED_DECLARATION(free)
GCC_NEED_DECLARATION(index) GCC_NEED_DECLARATION(index)
GCC_NEED_DECLARATION(rindex) GCC_NEED_DECLARATION(rindex)
GCC_NEED_DECLARATION(getenv) GCC_NEED_DECLARATION(getenv)
GCC_NEED_DECLARATION(sbrk)
AC_DECL_SYS_SIGLIST AC_DECL_SYS_SIGLIST
......
...@@ -1755,8 +1755,10 @@ STATIC void free_thead __proto((thead_t *)); ...@@ -1755,8 +1755,10 @@ STATIC void free_thead __proto((thead_t *));
STATIC char *local_index __proto((const char *, int)); STATIC char *local_index __proto((const char *, int));
STATIC char *local_rindex __proto((const char *, int)); STATIC char *local_rindex __proto((const char *, int));
#ifndef __alpha #ifdef NEED_DECLARATION_SBRK
extern char *sbrk __proto((int)); extern char *sbrk __proto((int));
#endif
#ifdef NEED_DECLARATION_FREE
extern void free __proto((PTR_T)); extern void free __proto((PTR_T));
#endif #endif
extern char *mktemp __proto((char *)); extern char *mktemp __proto((char *));
......
...@@ -39,6 +39,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -39,6 +39,9 @@ Boston, MA 02111-1307, USA. */
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#undef FLOAT /* This is for hpux. They should change hpux. */ #undef FLOAT /* This is for hpux. They should change hpux. */
#undef FFS /* Some systems define this in param.h. */ #undef FFS /* Some systems define this in param.h. */
...@@ -190,7 +193,7 @@ void print_switch_values (); ...@@ -190,7 +193,7 @@ void print_switch_values ();
/* Length of line when printing switch values. */ /* Length of line when printing switch values. */
#define MAX_LINE 75 #define MAX_LINE 75
#ifdef __alpha #ifdef NEED_DECLARATION_SBRK
extern char *sbrk (); extern char *sbrk ();
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment