[PATCH lib/libXaw] Include <unistd.h>

Alan Coopersmith alan.coopersmith at oracle.com
Thu Mar 19 18:39:17 PDT 2015


Hmm, we need that for usleep() on Solaris as well, but it looks like we're
getting it pulled in by <X11/Xos.h>.

Explicitly including it in file sounds good to me though, so
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

	-alan-

On 03/19/15 07:18 AM, Jon TURNEY wrote:
> Required for prototype of usleep() when building for MinGW
>
> Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
> ---
>   src/TextAction.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/TextAction.c b/src/TextAction.c
> index 74446d6..6363259 100644
> --- a/src/TextAction.c
> +++ b/src/TextAction.c
> @@ -29,6 +29,7 @@ in this Software without prior written authorization from The Open Group.
>   #endif
>   #include <stdio.h>
>   #include <stdlib.h>
> +#include <unistd.h>
>   #include <X11/Xos.h>		/* for select() and struct timeval */
>   #include <ctype.h>
>   #include <X11/IntrinsicP.h>
>


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


More information about the xorg-devel mailing list