Bug 26783 - patch: unistd.h not exist on ms windows
Summary: patch: unistd.h not exist on ms windows
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.8
Hardware: All Windows (All)
: medium normal
Assignee: Keith Packard
QA Contact: Behdad Esfahbod
URL: http://mail.gnome.org/archives/gtkmm-...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-02-26 17:42 UTC by Urs Stotz
Modified: 2010-03-03 10:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.