Dash:
[t2.git] / package / develop / wvstreams / hotfix-glibc212.patch
blobfb28bf27320919569d5ed3e573c68803465076a7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../wvstreams/glibc212.patch
5 # Copyright (C) 2011 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 http://bugs.gentoo.org/333301
19 --- wvstreams-4.6.1/ipstreams/wvunixdgsocket.cc
20 +++ wvstreams-4.6.1/ipstreams/wvunixdgsocket.cc
21 @@ -1,5 +1,5 @@
22 #include "wvunixdgsocket.h"
23 -#ifdef MACOS
24 +#if defined(MACOS) || defined(__GNUC__)
25 #include <sys/types.h>
26 #include <sys/stat.h>
27 #endif
28 --- wvstreams-4.6.1/streams/wvatomicfile.cc
29 +++ wvstreams-4.6.1/streams/wvatomicfile.cc
30 @@ -11,7 +11,8 @@
31 #include "wvfileutils.h"
32 #include "wvstrutils.h"
34 -#ifdef MACOS
35 +#if defined(MACOS) || defined(__GNUC__)
36 +#include <sys/types.h>
37 #include <sys/stat.h>
38 #endif