summaryrefslogtreecommitdiff
path: root/src/win32/anope_windows.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-14 22:07:13 -0400
committerAdam <Adam@anope.org>2011-10-14 22:07:13 -0400
commit28ca0e10070cd449c90609d95e839739ec4b7590 (patch)
tree7e039fe56df34301f676f1c03390b9566500529c /src/win32/anope_windows.h
parent2504af7d0f14ee72eac20dc6d6a12a08389ec0a9 (diff)
Fork earlier in startup to prevent it messing up threads, if there are any
Diffstat (limited to 'src/win32/anope_windows.h')
-rw-r--r--src/win32/anope_windows.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h
index db5f21300..a631a4a70 100644
--- a/src/win32/anope_windows.h
+++ b/src/win32/anope_windows.h
@@ -42,6 +42,8 @@
/* VS2008 hates having this define before its own */
#define vsnprintf _vsnprintf
#define stat _stat
+#define getcwd(x, y) GetCurrentDirectory(y, x)
+#define getpid GetCurrentProcessId
#define S_ISREG(x) ((x) & _S_IFREG)
#ifdef EINPROGRESS
# undef EINPROGRESS