aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/Makefile.am14
-rw-r--r--src/util/scheduler.c2
-rw-r--r--src/util/win.cc13
3 files changed, 7 insertions, 22 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 822ed19a6..b616de4d1 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -3,17 +3,17 @@ INCLUDES = -I$(top_srcdir)/src/include
3plugindir = $(libdir)/gnunet 3plugindir = $(libdir)/gnunet
4 4
5if MINGW 5if MINGW
6noinst_LIBRARIES = \ 6noinst_LTLIBRARIES = \
7 libgnunetutilwin.a 7 libgnunetutilwin.la
8libgnunetutilwin_a_SOURCES = \ 8libgnunetutilwin_la_SOURCES = \
9 win.cc \ 9 win.cc \
10 winproc.c 10 winproc.c
11libgnunetutilwin_a_LDFLAGS = \ 11libgnunetutilwin_la_LDFLAGS = \
12 -Wl,--no-undefined -Wl,--export-all-symbols 12 -Wl,--no-undefined -Wl,--export-all-symbols
13libgnunetutilwin_a_LIBADD = \ 13libgnunetutilwin_la_LIBADD = \
14 -lole32 -lshell32 -luuid -liconv -lstdc++ \ 14 -lshell32 -luuid -liconv -lstdc++ \
15 -lcomdlg32 -lgdi32 15 -lcomdlg32 -lgdi32
16WINLIB = libgnunetutilwin.a 16WINLIB = libgnunetutilwin.la
17endif 17endif
18 18
19if USE_COVERAGE 19if USE_COVERAGE
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index dc428e592..ba4c8dbcf 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -521,9 +521,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls)
521 struct GNUNET_SIGNAL_Context *shc_hup; 521 struct GNUNET_SIGNAL_Context *shc_hup;
522 unsigned long long last_tr; 522 unsigned long long last_tr;
523 unsigned int busy_wait_warning; 523 unsigned int busy_wait_warning;
524#ifndef MINGW
525 const struct GNUNET_DISK_FileHandle *pr; 524 const struct GNUNET_DISK_FileHandle *pr;
526#endif
527 char c; 525 char c;
528 526
529 rs = GNUNET_NETWORK_fdset_create (); 527 rs = GNUNET_NETWORK_fdset_create ();
diff --git a/src/util/win.cc b/src/util/win.cc
index df5f686b3..2cc3b8f71 100644
--- a/src/util/win.cc
+++ b/src/util/win.cc
@@ -42,21 +42,8 @@ using namespace std;
42 42
43extern "C" { 43extern "C" {
44 44
45typedef list<WSAOVERLAPPED *> TOLList;
46
47static HANDLE hOLLock;
48static TOLList lstOL;
49
50int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); 45int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows);
51 46
52void __attribute__ ((constructor)) gnunet_win_init() {
53 hOLLock = CreateMutex(NULL, FALSE, NULL);
54}
55
56void __attribute__ ((destructor)) gnunet_win_fini() {
57 CloseHandle(hOLLock);
58}
59
60/** 47/**
61 * Enumerate all network adapters 48 * Enumerate all network adapters
62 */ 49 */