diff options
author | Roland McGrath <roland@gnu.org> | 1993-11-11 00:41:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1993-11-11 00:41:15 +0000 |
commit | d33e9ed62951c7d7ef112bcff84eb8325f909b4a (patch) | |
tree | 833e4b1037332cb392b87ac3cc05622edda64af4 /src/unexec.c | |
parent | 47c49ae1ced578aed84e04378e7481ad5c631599 (diff) | |
download | emacs-d33e9ed62951c7d7ef112bcff84eb8325f909b4a.tar.gz |
[! HPUX]: Don't declare sbrk at all, so as not to conflict with headers.
Diffstat (limited to 'src/unexec.c')
-rw-r--r-- | src/unexec.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/unexec.c b/src/unexec.c index 7657e249659..e9be7aeac22 100644 --- a/src/unexec.c +++ b/src/unexec.c @@ -1,10 +1,10 @@ -/* Copyright (C) 1985, 1986, 1987, 1988, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -210,11 +210,18 @@ static long data_scnptr; #ifdef HPUX extern void *sbrk (); #else +#if 0 +/* Some systems with __STDC__ compilers still declare this `char *' in some + header file, and our declaration conflicts. The return value is always + cast, so it should be harmless to leave it undefined. Hopefully + machines with different size pointers and ints declare sbrk in a header + file. */ #ifdef __STDC__ extern void *sbrk (); #else extern char *sbrk (); #endif /* __STDC__ */ +#endif #endif /* HPUX */ #define SYMS_START ((long) N_SYMOFF (ohdr)) |