core/wvstreams/gcc-4.5.1.patch
2011-02-21 09:30:01 +01:00

23 lines
487 B
Diff

http://bugs.gentoo.org/333301
--- ipstreams/wvunixdgsocket.cc
+++ ipstreams/wvunixdgsocket.cc
@@ -1,5 +1,5 @@
#include "wvunixdgsocket.h"
-#ifdef MACOS
+#if defined(MACOS) || defined(__GNUC__)
#include <sys/types.h>
#include <sys/stat.h>
#endif
--- streams/wvatomicfile.cc
+++ streams/wvatomicfile.cc
@@ -11,7 +11,8 @@
#include "wvfileutils.h"
#include "wvstrutils.h"
-#ifdef MACOS
+#if defined(MACOS) || defined(__GNUC__)
+#include <sys/types.h>
#include <sys/stat.h>
#endif