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

Alan Coopersmith alan.coopersmith at oracle.com
Tue Apr 21 14:59:56 PDT 2015


On 04/21/15 05:44 AM, Jon TURNEY wrote:
> 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>
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list