#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 <sys/param.h>
+
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#if 0
#include <X11/X.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
-#include <sys/param.h>
#ifdef VMS
#include "vms-pwd.h"
#else
#endif
extern char *getenv ();
+
+/* This does cause trouble on AIX. I'm going to take the comment at
+ face value. */
+#if 0
extern short getuid (); /* If this causes portability problems,
I think we should just delete it; it'll
default to `int' anyway. */
+#endif
+
extern struct passwd *getpwuid ();
extern struct passwd *getpwnam ();
XrmDatabase db;
char *xdefs;
-#ifdef HAVE_X11R4
+#ifdef PBaseSize /* Cheap way to test for X11R4 or later. */
xdefs = XResourceManagerString (display);
#else
xdefs = display->xdefaults;