aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath1993-11-11 00:41:15 +0000
committerRoland McGrath1993-11-11 00:41:15 +0000
commitf31fe4725c88821dbb6bac05d9e73469609feabe (patch)
tree5d35d0c2d6eaa237b688fd965ac8e4b1bdb74428 /src
parente5074ca4b1fe458019bafebde2fa38284ccd382c (diff)
downloademacs-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.c11
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
3This file is part of GNU Emacs. 3This file is part of GNU Emacs.
4 4
5GNU Emacs is free software; you can redistribute it and/or modify 5GNU Emacs is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by 6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 1, or (at your option) 7the Free Software Foundation; either version 2, or (at your option)
8any later version. 8any later version.
9 9
10GNU Emacs is distributed in the hope that it will be useful, 10GNU 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
211extern void *sbrk (); 211extern 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__
214extern void *sbrk (); 220extern void *sbrk ();
215#else 221#else
216extern char *sbrk (); 222extern 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))