aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-08-12 11:19:40 +0000
committerLRN <lrn1986@gmail.com>2013-08-12 11:19:40 +0000
commit40f884cbb9c51975c1ea4a655c8c1813376ff788 (patch)
tree1eb181ff35f5ed3c80fd032124700c3de8946b8d
parenta9dcda31621696b7713db4bd89a7c02e7e4682e4 (diff)
downloadlibmicrohttpd-40f884cbb9c51975c1ea4a655c8c1813376ff788.tar.gz
libmicrohttpd-40f884cbb9c51975c1ea4a655c8c1813376ff788.zip
Modernize plibc.h a bit
-rw-r--r--src/include/plibc/plibc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/plibc/plibc.h b/src/include/plibc/plibc.h
index 559deb52..5b964080 100644
--- a/src/include/plibc/plibc.h
+++ b/src/include/plibc/plibc.h
@@ -115,6 +115,10 @@ enum
115 _SC_PAGE_SIZE = 30 115 _SC_PAGE_SIZE = 30
116}; 116};
117 117
118#if !defined(EACCESS)
119# define EACCESS EACCES
120#endif
121
118/* Thanks to the Cygwin project */ 122/* Thanks to the Cygwin project */
119#define ENOCSI 43 /* No CSI structure available */ 123#define ENOCSI 43 /* No CSI structure available */
120#define EL2HLT 44 /* Level 2 halted */ 124#define EL2HLT 44 /* Level 2 halted */
@@ -501,6 +505,7 @@ int _win_setsockopt(int s, int level, int optname, const void *optval,
501 int optlen); 505 int optlen);
502int _win_shutdown(int s, int how); 506int _win_shutdown(int s, int how);
503int _win_socket(int af, int type, int protocol); 507int _win_socket(int af, int type, int protocol);
508int _win_socketpair(int af, int type, int protocol, int socket_vector[2]);
504struct hostent *_win_gethostbyaddr(const char *addr, int len, int type); 509struct hostent *_win_gethostbyaddr(const char *addr, int len, int type);
505struct hostent *_win_gethostbyname(const char *name); 510struct hostent *_win_gethostbyname(const char *name);
506struct hostent *gethostbyname2(const char *name, int af); 511struct hostent *gethostbyname2(const char *name, int af);
@@ -605,6 +610,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start);
605 #define SETSOCKOPT(s, l, o, v, n) setsockopt(s, l, o, v, n) 610 #define SETSOCKOPT(s, l, o, v, n) setsockopt(s, l, o, v, n)
606 #define SHUTDOWN(s, h) shutdown(s, h) 611 #define SHUTDOWN(s, h) shutdown(s, h)
607 #define SOCKET(a, t, p) socket(a, t, p) 612 #define SOCKET(a, t, p) socket(a, t, p)
613 #define SOCKETPAIR(a, t, p, v) socketpair(a, t, p, v)
608 #define GETHOSTBYADDR(a, l, t) gethostbyname(a, l, t) 614 #define GETHOSTBYADDR(a, l, t) gethostbyname(a, l, t)
609 #define GETHOSTBYNAME(n) gethostbyname(n) 615 #define GETHOSTBYNAME(n) gethostbyname(n)
610 #define GETTIMEOFDAY(t, n) gettimeofday(t, n) 616 #define GETTIMEOFDAY(t, n) gettimeofday(t, n)
@@ -703,6 +709,7 @@ char *strcasestr(const char *haystack_start, const char *needle_start);
703 #define SETSOCKOPT(s, l, o, v, n) _win_setsockopt(s, l, o, v, n) 709 #define SETSOCKOPT(s, l, o, v, n) _win_setsockopt(s, l, o, v, n)
704 #define SHUTDOWN(s, h) _win_shutdown(s, h) 710 #define SHUTDOWN(s, h) _win_shutdown(s, h)
705 #define SOCKET(a, t, p) _win_socket(a, t, p) 711 #define SOCKET(a, t, p) _win_socket(a, t, p)
712 #define SOCKETPAIR(a, t, p, v) _win_socketpair(a, t, p, v)
706 #define GETHOSTBYADDR(a, l, t) _win_gethostbyname(a, l, t) 713 #define GETHOSTBYADDR(a, l, t) _win_gethostbyname(a, l, t)
707 #define GETHOSTBYNAME(n) _win_gethostbyname(n) 714 #define GETHOSTBYNAME(n) _win_gethostbyname(n)
708 #define GETTIMEOFDAY(t, n) _win_gettimeofday(t, n) 715 #define GETTIMEOFDAY(t, n) _win_gettimeofday(t, n)