diff options
-rw-r--r-- | src/util/Makefile.am | 14 | ||||
-rw-r--r-- | src/util/scheduler.c | 2 | ||||
-rw-r--r-- | src/util/win.cc | 13 |
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 | |||
3 | plugindir = $(libdir)/gnunet | 3 | plugindir = $(libdir)/gnunet |
4 | 4 | ||
5 | if MINGW | 5 | if MINGW |
6 | noinst_LIBRARIES = \ | 6 | noinst_LTLIBRARIES = \ |
7 | libgnunetutilwin.a | 7 | libgnunetutilwin.la |
8 | libgnunetutilwin_a_SOURCES = \ | 8 | libgnunetutilwin_la_SOURCES = \ |
9 | win.cc \ | 9 | win.cc \ |
10 | winproc.c | 10 | winproc.c |
11 | libgnunetutilwin_a_LDFLAGS = \ | 11 | libgnunetutilwin_la_LDFLAGS = \ |
12 | -Wl,--no-undefined -Wl,--export-all-symbols | 12 | -Wl,--no-undefined -Wl,--export-all-symbols |
13 | libgnunetutilwin_a_LIBADD = \ | 13 | libgnunetutilwin_la_LIBADD = \ |
14 | -lole32 -lshell32 -luuid -liconv -lstdc++ \ | 14 | -lshell32 -luuid -liconv -lstdc++ \ |
15 | -lcomdlg32 -lgdi32 | 15 | -lcomdlg32 -lgdi32 |
16 | WINLIB = libgnunetutilwin.a | 16 | WINLIB = libgnunetutilwin.la |
17 | endif | 17 | endif |
18 | 18 | ||
19 | if USE_COVERAGE | 19 | if 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 | ||
43 | extern "C" { | 43 | extern "C" { |
44 | 44 | ||
45 | typedef list<WSAOVERLAPPED *> TOLList; | ||
46 | |||
47 | static HANDLE hOLLock; | ||
48 | static TOLList lstOL; | ||
49 | |||
50 | int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); | 45 | int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); |
51 | 46 | ||
52 | void __attribute__ ((constructor)) gnunet_win_init() { | ||
53 | hOLLock = CreateMutex(NULL, FALSE, NULL); | ||
54 | } | ||
55 | |||
56 | void __attribute__ ((destructor)) gnunet_win_fini() { | ||
57 | CloseHandle(hOLLock); | ||
58 | } | ||
59 | |||
60 | /** | 47 | /** |
61 | * Enumerate all network adapters | 48 | * Enumerate all network adapters |
62 | */ | 49 | */ |