include/port.h: fix a compiler warning on OpenSolaris
Austin English
austinenglish at gmail.com
Sun Mar 1 01:09:04 CST 2009
OpenSolaris defines _FILE_OFFSET_BITS as well, causing a conflict.
--
-Austin
-------------- next part --------------
diff --git a/include/wine/port.h b/include/wine/port.h
index 817f02b..04f0486 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -29,6 +29,9 @@
# error You must include port.h before all other headers
#endif
+#ifdef _FILE_OFFSET_BITS
+#undef _FILE_OFFSET_BITS /* causes a conflict on Solaris */
+#endif
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE /* for pread/pwrite */
#include <fcntl.h>
More information about the wine-patches
mailing list