[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28517 - libmicrohttpd/src/include/plibc
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28517 - libmicrohttpd/src/include/plibc |
Date: |
Mon, 12 Aug 2013 13:19:40 +0200 |
Author: LRN
Date: 2013-08-12 13:19:40 +0200 (Mon, 12 Aug 2013)
New Revision: 28517
Modified:
libmicrohttpd/src/include/plibc/plibc.h
Log:
Modernize plibc.h a bit
Modified: libmicrohttpd/src/include/plibc/plibc.h
===================================================================
--- libmicrohttpd/src/include/plibc/plibc.h 2013-08-12 11:15:26 UTC (rev
28516)
+++ libmicrohttpd/src/include/plibc/plibc.h 2013-08-12 11:19:40 UTC (rev
28517)
@@ -115,6 +115,10 @@
_SC_PAGE_SIZE = 30
};
+#if !defined(EACCESS)
+# define EACCESS EACCES
+#endif
+
/* Thanks to the Cygwin project */
#define ENOCSI 43 /* No CSI structure available */
#define EL2HLT 44 /* Level 2 halted */
@@ -501,6 +505,7 @@
int optlen);
int _win_shutdown(int s, int how);
int _win_socket(int af, int type, int protocol);
+int _win_socketpair(int af, int type, int protocol, int socket_vector[2]);
struct hostent *_win_gethostbyaddr(const char *addr, int len, int type);
struct hostent *_win_gethostbyname(const char *name);
struct hostent *gethostbyname2(const char *name, int af);
@@ -605,6 +610,7 @@
#define SETSOCKOPT(s, l, o, v, n) setsockopt(s, l, o, v, n)
#define SHUTDOWN(s, h) shutdown(s, h)
#define SOCKET(a, t, p) socket(a, t, p)
+ #define SOCKETPAIR(a, t, p, v) socketpair(a, t, p, v)
#define GETHOSTBYADDR(a, l, t) gethostbyname(a, l, t)
#define GETHOSTBYNAME(n) gethostbyname(n)
#define GETTIMEOFDAY(t, n) gettimeofday(t, n)
@@ -703,6 +709,7 @@
#define SETSOCKOPT(s, l, o, v, n) _win_setsockopt(s, l, o, v, n)
#define SHUTDOWN(s, h) _win_shutdown(s, h)
#define SOCKET(a, t, p) _win_socket(a, t, p)
+ #define SOCKETPAIR(a, t, p, v) _win_socketpair(a, t, p, v)
#define GETHOSTBYADDR(a, l, t) _win_gethostbyname(a, l, t)
#define GETHOSTBYNAME(n) _win_gethostbyname(n)
#define GETTIMEOFDAY(t, n) _win_gettimeofday(t, n)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28517 - libmicrohttpd/src/include/plibc,
gnunet <=