/[gentoo-x86]/app-crypt/eid-mw/files/eid-mw-4.0.2_p1188+gcc-4.7.patch
Gentoo

Contents of /app-crypt/eid-mw/files/eid-mw-4.0.2_p1188+gcc-4.7.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 24 08:38:34 2012 UTC (2 years, 3 months ago) by flameeyes
Branch: MAIN
Add patch to build with GCC 4.7 (fixes bug #422873).

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 Index: eid-mw-4.0.2/common/src/socket/socket.cpp
2 ===================================================================
3 --- eid-mw-4.0.2.orig/common/src/socket/socket.cpp
4 +++ eid-mw-4.0.2/common/src/socket/socket.cpp
5 @@ -21,6 +21,10 @@
6 #include "../eiderrors.h"
7 #include <iostream>
8
9 +#ifdef HAVE_UNISTD_H
10 +#include <unistd.h>
11 +#endif
12 +
13 namespace eIDMW
14 {
15
16 Index: eid-mw-4.0.2/common/src/socket/socketserver.cpp
17 ===================================================================
18 --- eid-mw-4.0.2.orig/common/src/socket/socketserver.cpp
19 +++ eid-mw-4.0.2/common/src/socket/socketserver.cpp
20 @@ -26,6 +26,7 @@
21 #include <netinet/in.h>
22 #include <sys/ioctl.h>
23 #include <errno.h>
24 +#include <unistd.h>
25 #ifndef SOCKET_ERROR
26 #define SOCKET_ERROR -1
27 #endif
28 Index: eid-mw-4.0.2/common/src/util.cpp
29 ===================================================================
30 --- eid-mw-4.0.2.orig/common/src/util.cpp
31 +++ eid-mw-4.0.2/common/src/util.cpp
32 @@ -27,6 +27,10 @@
33
34 #include <stdlib.h>
35
36 +#ifdef HAVE_UNISTD_H
37 +#include <unistd.h>
38 +#endif
39 +
40 #ifdef WIN32
41 #include <windows.h>
42 #endif

  ViewVC Help
Powered by ViewVC 1.1.20