aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-10-11 06:44:42 +0000
committerJim Blandy1992-10-11 06:44:42 +0000
commit54c908b57c8dd89b90d6a650724df0d2f0224071 (patch)
treed52a2b2d5ce3afef0ce5ba1a8e26c183c39a477a /src
parente25c4e44b8a2ca70856ec5c0ebf1151f49871de3 (diff)
downloademacs-54c908b57c8dd89b90d6a650724df0d2f0224071.tar.gz
emacs-54c908b57c8dd89b90d6a650724df0d2f0224071.zip
* xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.
Diffstat (limited to 'src')
-rw-r--r--src/xrdb.c7
-rw-r--r--src/xterm.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index a722780f60d..f241a079c4e 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -29,7 +29,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
29#endif /* USG5 */ 29#endif /* USG5 */
30 30
31#endif /* 1 */ 31#endif /* 1 */
32 32
33/* This should be included before the X include files; otherwise, we get
34 warnings about redefining NULL under BSD 4.3. */
35#include <sys/param.h>
36
33#include <X11/Xlib.h> 37#include <X11/Xlib.h>
34#include <X11/Xatom.h> 38#include <X11/Xatom.h>
35#if 0 39#if 0
@@ -38,7 +42,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
38#include <X11/X.h> 42#include <X11/X.h>
39#include <X11/Xutil.h> 43#include <X11/Xutil.h>
40#include <X11/Xresource.h> 44#include <X11/Xresource.h>
41#include <sys/param.h>
42#ifdef VMS 45#ifdef VMS
43#include "vms-pwd.h" 46#include "vms-pwd.h"
44#else 47#else
diff --git a/src/xterm.c b/src/xterm.c
index be9f87bac88..1bbdf5782cf 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -31,7 +31,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
31 31
32#include "lisp.h" 32#include "lisp.h"
33 33
34/* On 4.3 this loses if it comes after xterm.h. */ 34/* On 4.3 these lose if they come after xterm.h. */
35#include <stdio.h>
35#include <signal.h> 36#include <signal.h>
36 37
37/* This may include sys/types.h, and that somehow loses 38/* This may include sys/types.h, and that somehow loses
@@ -70,7 +71,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
70#include "systime.h" 71#include "systime.h"
71 72
72#include <fcntl.h> 73#include <fcntl.h>
73#include <stdio.h>
74#include <ctype.h> 74#include <ctype.h>
75#include <errno.h> 75#include <errno.h>
76#include <setjmp.h> 76#include <setjmp.h>