From e1ecbdf652f05494c90edda1ffd472dc82a43e8c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 24 Apr 2012 11:54:02 +0100 Subject: Initialise winsock once in appletlib, not in applets --- libbb/appletlib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 116e275be..76c4d8ff3 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -187,6 +187,8 @@ void lbb_prepare(const char *applet if (ENABLE_LOCALE_SUPPORT && getpid() != 1) setlocale(LC_ALL, ""); + IF_WIN32_NET(init_winsock();) + #if ENABLE_FEATURE_INDIVIDUAL /* Redundant for busybox (run_applet_and_exit covers that case) * but needed for "individual applet" mode */ -- cgit v1.2.3-55-g6feb