aboutsummaryrefslogtreecommitdiff
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
parent7483649514ed2049deaf59077dbb77c915ba22a0 (diff)
downloadbusybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.gz
busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.bz2
busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.zip
win32: re-enable xconnect.c
-rw-r--r--include/libbb.h2
-rw-r--r--include/mingw.h13
-rw-r--r--libbb/Kbuild.src2
3 files changed, 14 insertions, 3 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
diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src
index f30fa4818..9ea3d735d 100644
--- a/libbb/Kbuild.src
+++ b/libbb/Kbuild.src
@@ -100,6 +100,7 @@ lib-y += wfopen.o
100lib-y += wfopen_input.o 100lib-y += wfopen_input.o
101lib-y += write.o 101lib-y += write.o
102lib-y += xatonum.o 102lib-y += xatonum.o
103lib-y += xconnect.o
103lib-y += xfunc_die.o 104lib-y += xfunc_die.o
104lib-y += xfuncs.o 105lib-y += xfuncs.o
105lib-y += xfuncs_printf.o 106lib-y += xfuncs_printf.o
@@ -118,7 +119,6 @@ lib-$(CONFIG_PLATFORM_POSIX) += read_key.o
118lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o 119lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o
119lib-$(CONFIG_PLATFORM_POSIX) += signals.o 120lib-$(CONFIG_PLATFORM_POSIX) += signals.o
120lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o 121lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o
121lib-$(CONFIG_PLATFORM_POSIX) += xconnect.o
122lib-$(CONFIG_PLATFORM_POSIX) += xgethostbyname.o 122lib-$(CONFIG_PLATFORM_POSIX) += xgethostbyname.o
123 123
124lib-$(CONFIG_FEATURE_UTMP) += utmp.o 124lib-$(CONFIG_FEATURE_UTMP) += utmp.o