summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-04-21 13:23:54 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-05-07 20:04:08 +0100
commite435972e97a209144e49ec45731edef45265a03f (patch)
tree3d6c0fa5b02df09c727c60c89d0858d6e96bb736
parent217c8ad8ee7690c24a9345941071c6befe6c68fb (diff)
Include unistd.h for usleep() if HAVE_USLEEP
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--xset.c3
1 files changed, 3 insertions, 0 deletions
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>