You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/eid-mw/files/eid-mw-4.0.2_p1188+gcc-4.7....

43 lines
1.1 KiB

Index: eid-mw-4.0.2/common/src/socket/socket.cpp
===================================================================
--- eid-mw-4.0.2.orig/common/src/socket/socket.cpp
+++ eid-mw-4.0.2/common/src/socket/socket.cpp
@@ -21,6 +21,10 @@
#include "../eiderrors.h"
#include <iostream>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
namespace eIDMW
{
Index: eid-mw-4.0.2/common/src/socket/socketserver.cpp
===================================================================
--- eid-mw-4.0.2.orig/common/src/socket/socketserver.cpp
+++ eid-mw-4.0.2/common/src/socket/socketserver.cpp
@@ -26,6 +26,7 @@
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <errno.h>
+#include <unistd.h>
#ifndef SOCKET_ERROR
#define SOCKET_ERROR -1
#endif
Index: eid-mw-4.0.2/common/src/util.cpp
===================================================================
--- eid-mw-4.0.2.orig/common/src/util.cpp
+++ eid-mw-4.0.2/common/src/util.cpp
@@ -27,6 +27,10 @@
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef WIN32
#include <windows.h>
#endif