summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-15 17:51:22 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-20 17:51:17 +1000
commitd57f58814a25264aeab875a501d3eeeca12fd3f8 (patch)
treeca4fbf1ea1d499924ec9dd67a4eaa10c412df531 /include
parent7483649514ed2049deaf59077dbb77c915ba22a0 (diff)
downloadbusybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.gz
busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.bz2
busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.zip
win32: re-enable xconnect.c
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
-rw-r--r--include/mingw.h13
2 files changed, 13 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 31e733d77..01aee206e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -484,7 +484,6 @@ void xlisten(int s, int backlog) FAST_FUNC;
484void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC; 484void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC;
485ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, 485ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to,
486 socklen_t tolen) FAST_FUNC; 486 socklen_t tolen) FAST_FUNC;
487#if !ENABLE_PLATFORM_MINGW32
488/* SO_REUSEADDR allows a server to rebind to an address that is already 487/* SO_REUSEADDR allows a server to rebind to an address that is already
489 * "in use" by old connections to e.g. previous server instance which is 488 * "in use" by old connections to e.g. previous server instance which is
490 * killed or crashed. Without it bind will fail until all such connections 489 * killed or crashed. Without it bind will fail until all such connections
@@ -597,7 +596,6 @@ ssize_t recv_from_to(int fd, void *buf, size_t len, int flags,
597 struct sockaddr *from, 596 struct sockaddr *from,
598 struct sockaddr *to, 597 struct sockaddr *to,
599 socklen_t sa_size) FAST_FUNC; 598 socklen_t sa_size) FAST_FUNC;
600#endif
601 599
602 600
603char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC; 601char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC;
diff --git a/include/mingw.h b/include/mingw.h
index 1caf65464..a7352bdfb 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -49,6 +49,19 @@ static inline void endgrent(void) {}
49#define NAME_MAX 255 49#define NAME_MAX 255
50#define MAXSYMLINKS 20 50#define MAXSYMLINKS 20
51 51
52/*
53 * netdb.h
54 */
55
56typedef int sa_family_t;
57
58/*
59 * linux/un.h
60 */
61struct sockaddr_un {
62 sa_family_t sun_family;
63 char sun_path[1]; /* to make compiler happy, don't bother */
64};
52 65
53/* 66/*
54 * poll.h 67 * poll.h