diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-15 17:51:22 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-20 17:51:17 +1000 |
commit | d57f58814a25264aeab875a501d3eeeca12fd3f8 (patch) | |
tree | ca4fbf1ea1d499924ec9dd67a4eaa10c412df531 | |
parent | 7483649514ed2049deaf59077dbb77c915ba22a0 (diff) | |
download | busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.gz busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.tar.bz2 busybox-w32-d57f58814a25264aeab875a501d3eeeca12fd3f8.zip |
win32: re-enable xconnect.c
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | include/mingw.h | 13 | ||||
-rw-r--r-- | libbb/Kbuild.src | 2 |
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; | |||
484 | void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC; | 484 | void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC; |
485 | ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, | 485 | ssize_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 | ||
603 | char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC; | 601 | char *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 | |||
56 | typedef int sa_family_t; | ||
57 | |||
58 | /* | ||
59 | * linux/un.h | ||
60 | */ | ||
61 | struct 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 | |||
100 | lib-y += wfopen_input.o | 100 | lib-y += wfopen_input.o |
101 | lib-y += write.o | 101 | lib-y += write.o |
102 | lib-y += xatonum.o | 102 | lib-y += xatonum.o |
103 | lib-y += xconnect.o | ||
103 | lib-y += xfunc_die.o | 104 | lib-y += xfunc_die.o |
104 | lib-y += xfuncs.o | 105 | lib-y += xfuncs.o |
105 | lib-y += xfuncs_printf.o | 106 | lib-y += xfuncs_printf.o |
@@ -118,7 +119,6 @@ lib-$(CONFIG_PLATFORM_POSIX) += read_key.o | |||
118 | lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o | 119 | lib-$(CONFIG_PLATFORM_POSIX) += safe_gethostname.o |
119 | lib-$(CONFIG_PLATFORM_POSIX) += signals.o | 120 | lib-$(CONFIG_PLATFORM_POSIX) += signals.o |
120 | lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o | 121 | lib-$(CONFIG_PLATFORM_POSIX) += udp_io.o |
121 | lib-$(CONFIG_PLATFORM_POSIX) += xconnect.o | ||
122 | lib-$(CONFIG_PLATFORM_POSIX) += xgethostbyname.o | 122 | lib-$(CONFIG_PLATFORM_POSIX) += xgethostbyname.o |
123 | 123 | ||
124 | lib-$(CONFIG_FEATURE_UTMP) += utmp.o | 124 | lib-$(CONFIG_FEATURE_UTMP) += utmp.o |