[PATCH] Include unistd.h for usleep() if HAVE_USLEEP

Jon TURNEY jon.turney at dronecode.org.uk
Tue Apr 21 05:44:46 PDT 2015


Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 xset.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xset.c b/xset.c
index 98f552f..95da41b 100644
--- a/xset.c
+++ b/xset.c
@@ -53,6 +53,9 @@ in this Software without prior written authorization from The Open Group.
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#ifdef HAVE_USLEEP
+#include <unistd.h>
+#endif
 #include <X11/Xos.h>
 #include <X11/Xfuncs.h>
 #include <X11/Xlib.h>
-- 
2.3.5



More information about the xorg-devel mailing list