From 73cd90e4f9eb24891ad70f15ef6ede5f077c88aa Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Mon, 07 May 2007 16:33:57 +0000
Subject: [PATCH] Updating Windows service related code and executables.  This fixes a problem with stopping the server on Windows, and also adds a lot of debug logging to the service code, so we can track problems down in the future

---
 opends/src/build-tools/windows/common.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/opends/src/build-tools/windows/common.h b/opends/src/build-tools/windows/common.h
index 969909d..81889e0 100644
--- a/opends/src/build-tools/windows/common.h
+++ b/opends/src/build-tools/windows/common.h
@@ -28,8 +28,14 @@
 // Just some functions and constants to be used by winlauncher.c
 // and service.c
 
+// This stops warnings about deprecation of stdio functions
+#define _CRT_SECURE_NO_DEPRECATE 1
+
 #include <Windows.h>
 
 int spawn(const char* command, BOOL background);
 BOOL createChildProcess(char* command, BOOL background,
 PROCESS_INFORMATION* procInfo);
+void debug(const char *msg, ...);
+void debugError(const char *msg, ...);
+void updateDebugFlag(char* argv[], int argc);
\ No newline at end of file

--
Gitblit v1.10.0