diff options
| author | Roland McGrath | 1993-11-11 00:41:15 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-11-11 00:41:15 +0000 |
| commit | f31fe4725c88821dbb6bac05d9e73469609feabe (patch) | |
| tree | 5d35d0c2d6eaa237b688fd965ac8e4b1bdb74428 /src | |
| parent | e5074ca4b1fe458019bafebde2fa38284ccd382c (diff) | |
| download | emacs-f31fe4725c88821dbb6bac05d9e73469609feabe.tar.gz emacs-f31fe4725c88821dbb6bac05d9e73469609feabe.zip | |
[! HPUX]: Don't declare sbrk at all, so as not to conflict with headers.
Diffstat (limited to 'src')
| -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 @@ | |||
| 1 | /* Copyright (C) 1985, 1986, 1987, 1988, 1992 Free Software Foundation, Inc. | 1 | /* Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993 Free Software Foundation, Inc. |
| 2 | 2 | ||
| 3 | This file is part of GNU Emacs. | 3 | This file is part of GNU Emacs. |
| 4 | 4 | ||
| 5 | GNU Emacs is free software; you can redistribute it and/or modify | 5 | GNU Emacs is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 1, or (at your option) | 7 | the Free Software Foundation; either version 2, or (at your option) |
| 8 | any later version. | 8 | any later version. |
| 9 | 9 | ||
| 10 | GNU Emacs is distributed in the hope that it will be useful, | 10 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -210,11 +210,18 @@ static long data_scnptr; | |||
| 210 | #ifdef HPUX | 210 | #ifdef HPUX |
| 211 | extern void *sbrk (); | 211 | extern void *sbrk (); |
| 212 | #else | 212 | #else |
| 213 | #if 0 | ||
| 214 | /* Some systems with __STDC__ compilers still declare this `char *' in some | ||
| 215 | header file, and our declaration conflicts. The return value is always | ||
| 216 | cast, so it should be harmless to leave it undefined. Hopefully | ||
| 217 | machines with different size pointers and ints declare sbrk in a header | ||
| 218 | file. */ | ||
| 213 | #ifdef __STDC__ | 219 | #ifdef __STDC__ |
| 214 | extern void *sbrk (); | 220 | extern void *sbrk (); |
| 215 | #else | 221 | #else |
| 216 | extern char *sbrk (); | 222 | extern char *sbrk (); |
| 217 | #endif /* __STDC__ */ | 223 | #endif /* __STDC__ */ |
| 224 | #endif | ||
| 218 | #endif /* HPUX */ | 225 | #endif /* HPUX */ |
| 219 | 226 | ||
| 220 | #define SYMS_START ((long) N_SYMOFF (ohdr)) | 227 | #define SYMS_START ((long) N_SYMOFF (ohdr)) |