$NetBSD: patch-ac,v 1.2 2005/12/06 15:57:22 joerg Exp $

--- uwm.h.orig	Mon Oct 24 19:08:24 1988
+++ uwm.h	Thu Dec 23 00:27:02 1999
@@ -39,6 +39,12 @@
  
 #include <errno.h>
 #include <stdio.h>
+#ifdef CSRG_BASED
+#include <unistd.h>
+#endif
+#ifndef X_NOT_STDC_ENV
+#include <stdlib.h>
+#endif
 #include <X11/Xos.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -261,7 +267,6 @@ typedef int Pixel;
 /*
  * External variable definitions.
  */
-extern int errno;
 extern Window Pop;		/* Pop-up dimension display window. */
 extern Window Frozen;		/* Contains window id of "gridded" window. */
 extern XFontStruct *IFontInfo;	/* Icon text font information. */
