summaryrefslogtreecommitdiff
blob: 38218d7213a9343ccc5975a028f5055d5422d76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
http://bugs.gentoo.org/333301

--- a/ipstreams/wvunixdgsocket.cc
+++ b/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
--- a/streams/wvatomicfile.cc
+++ b/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