diff lwlib/xlwmenu.c @ 157:6b37e6ddd302 r20-3b5

Import from CVS: tag r20-3b5
author cvs
date Mon, 13 Aug 2007 09:40:41 +0200
parents b980b6286996
children 0132846995bd
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Mon Aug 13 09:39:46 2007 +0200
+++ b/lwlib/xlwmenu.c	Mon Aug 13 09:40:41 2007 +0200
@@ -21,14 +21,19 @@
 
 /* Created by devin@lucid.com */
 
+#include <config.h>
 #include <stdlib.h>
-#include <unistd.h>
 #include <string.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <sys/types.h>
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
-#include <sys/types.h>
 #include <X11/Xos.h>
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>