Bug 26783

Summary: patch: unistd.h not exist on ms windows
Product: fontconfig Reporter: Urs Stotz <stotz>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: armin, freedesktop
Version: 2.8Keywords: patch
Hardware: All   
OS: Windows (All)   
URL: http://mail.gnome.org/archives/gtkmm-list/2010-February/msg00038.html
Whiteboard:
i915 platform: i915 features:

Description Urs Stotz 2010-02-26 17:42:04 UTC
diff -Nurp fontconfig-2.8.0.org/fontconfig/fontconfig.h fontconfig-2.8.0/fontconfig/fontconfig.h
--- fontconfig-2.8.0.org/fontconfig/fontconfig.h	2009-11-19 00:49:23.000000000 +0100
+++ fontconfig-2.8.0/fontconfig/fontconfig.h	2010-02-27 02:39:01.000000000 +0100
@@ -27,7 +27,9 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>
+#ifndef _MSC_VER
+#  include <unistd.h>
+#endif
 #include <stdarg.h>
 
 #if defined(__GNUC__) && (__GNUC__ >= 4)
Comment 1 Behdad Esfahbod 2010-03-03 10:28:21 UTC
I simply removed that one since the public header doesn't use it.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.