summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-08-03 06:54:40 +0000
committerChris Wilson <chris+github@qwirx.com>2008-08-03 06:54:40 +0000
commit430bbb36f6e1040333a22b79938938754dd49aac (patch)
tree9a4376959d003848a000f2293e49fe2f7a175f60
parentc3bb89f8f49202d2551d6de1b01de9df8c8371d6 (diff)
Add getpid() emulation.
-rw-r--r--lib/win32/emu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/win32/emu.h b/lib/win32/emu.h
index 8ab74130..a19a86ff 100644
--- a/lib/win32/emu.h
+++ b/lib/win32/emu.h
@@ -205,6 +205,7 @@ struct itimerval
//again need to verify these
#define S_IFLNK 1
+#define S_IFSOCK 0
#define S_ISLNK(x) ( false )
@@ -292,6 +293,11 @@ inline int ioctl(SOCKET sock, int flag, int * something)
return 0;
}
+extern "C" inline int getpid()
+{
+ return (int)GetCurrentProcessId();
+}
+
inline int waitpid(pid_t pid, int *status, int)
{
return 0;