projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/: Include unistd.h on *NIX only
[platform/upstream/glib.git]
/
tests
/
mapping-test.c
diff --git
a/tests/mapping-test.c
b/tests/mapping-test.c
index
263dcf9
..
c21b21f
100644
(file)
--- a/
tests/mapping-test.c
+++ b/
tests/mapping-test.c
@@
-16,19
+16,18
@@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
-#include "config.h"
-
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#include <sys/types.h>
#include <signal.h>
#include "glib.h"
#include "gstdio.h"
#include <sys/types.h>
#include <signal.h>
#include "glib.h"
#include "gstdio.h"
+#ifdef G_OS_UNIX
+#include <unistd.h>
+#endif
+
static gchar *dir, *filename, *displayname, *childname;
static gboolean stop = FALSE;
static gchar *dir, *filename, *displayname, *childname;
static gboolean stop = FALSE;