]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Windows MSVC compile fix
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 8 Nov 2018 12:39:03 +0000 (13:39 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 8 Nov 2018 13:20:55 +0000 (14:20 +0100)
Do not use unistd.h with MSVC because this header file does not
exist for this compiler.

Fixup of commit b0c0652005ce6892dd359f1b098dbdec9fb7455f

tools/dbus-run-session.c

index 57daa97713258ed6f3ae3ffec32d81e5caf8969a..face95a1bc706845be708a669cd69eb2ede1de11 100644 (file)
@@ -31,7 +31,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifndef _MSC_VER
 #include <unistd.h>
+#endif
 
 #include <sys/types.h>
 #ifdef DBUS_UNIX