# HG changeset patch # User Jim Blandy # Date 718785882 0 # Node ID 517c3893ec5b390e89356c67783e69a16caa0ca6 # Parent 02226bff1476454953c093d684acd7eeb43d80d1 * xterm.c, xrdb.c: #include before "xterm.h", to avoid warnings about redefining NULL under GCC 2.2.2. diff -r 02226bff1476 -r 517c3893ec5b src/xrdb.c --- a/src/xrdb.c Sun Oct 11 06:43:30 1992 +0000 +++ b/src/xrdb.c Sun Oct 11 06:44:42 1992 +0000 @@ -29,7 +29,11 @@ #endif /* USG5 */ #endif /* 1 */ - + +/* This should be included before the X include files; otherwise, we get + warnings about redefining NULL under BSD 4.3. */ +#include + #include #include #if 0 @@ -38,7 +42,6 @@ #include #include #include -#include #ifdef VMS #include "vms-pwd.h" #else diff -r 02226bff1476 -r 517c3893ec5b src/xterm.c --- a/src/xterm.c Sun Oct 11 06:43:30 1992 +0000 +++ b/src/xterm.c Sun Oct 11 06:44:42 1992 +0000 @@ -31,7 +31,8 @@ #include "lisp.h" -/* On 4.3 this loses if it comes after xterm.h. */ +/* On 4.3 these lose if they come after xterm.h. */ +#include #include /* This may include sys/types.h, and that somehow loses @@ -70,7 +71,6 @@ #include "systime.h" #include -#include #include #include #include