Mercurial > emacs
comparison src/unexec.c @ 4973:4e5081dcfc25
[! HPUX]: Don't declare sbrk at all, so as not to conflict with headers.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Thu, 11 Nov 1993 00:41:15 +0000 |
parents | 1fc792473491 |
children | 6f6637309b38 |
comparison
equal
deleted
inserted
replaced
4972:2d729d1bd643 | 4973:4e5081dcfc25 |
---|---|
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, |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
208 #else /* not COFF */ | 208 #else /* not COFF */ |
209 | 209 |
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)) |
221 | 228 |
222 /* Some machines override the structure name for an a.out header. */ | 229 /* Some machines override the structure name for an a.out header. */ |