windefs: Include the library advapi32.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 12 Mar 2014 20:43:52 +0000 (13:43 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 17 Mar 2014 21:20:48 +0000 (14:20 -0700)
advapi32 is needed by multiple functions
So include it in a common place.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
include/windows/windefs.h
lib/daemon-windows.c

index 0a2e064..948462b 100644 (file)
@@ -24,6 +24,8 @@
 #include <BaseTsd.h>
 #include <io.h>
 
+#pragma comment(lib, "advapi32")
+
 #define inline __inline
 #define __func__ __FUNCTION__
 #define ssize_t SSIZE_T
index 60e028b..da0bd11 100644 (file)
@@ -21,8 +21,6 @@
 #include "poll-loop.h"
 #include "vlog.h"
 
-#pragma comment(lib, "advapi32")
-
 VLOG_DEFINE_THIS_MODULE(daemon);
 
 static bool detach;             /* Was --service specified? */