]> granicus.if.org Git - p11-kit/commitdiff
common: Move unistd include to define getopt and friends
authorMichael Cronenworth <mike@cchtml.com>
Sat, 13 Sep 2014 01:48:39 +0000 (20:48 -0500)
committerStef Walter <stef@thewalter.net>
Thu, 18 Sep 2014 07:50:52 +0000 (09:50 +0200)
Needed to fix MinGW builds.

Signed-off-by: Michael Cronenworth <mike@cchtml.com>
common/test.c

index c619b7d857fd8f24203b16b96d2c13f9d8569fac..289b35b98d855dd5981a7b40df760a05fd8bb24d 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #ifdef OS_UNIX
 #include <sys/stat.h>
 #include <sys/wait.h>
-#include <unistd.h>
 #endif
 
 enum {