summaryrefslogtreecommitdiffstats
path: root/external_libs/python/zmq/utils/getpid_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'external_libs/python/zmq/utils/getpid_compat.h')
-rw-r--r--external_libs/python/zmq/utils/getpid_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/external_libs/python/zmq/utils/getpid_compat.h b/external_libs/python/zmq/utils/getpid_compat.h
new file mode 100644
index 00000000..47ce90fa
--- /dev/null
+++ b/external_libs/python/zmq/utils/getpid_compat.h
@@ -0,0 +1,6 @@
+#ifdef _WIN32
+ #include <process.h>
+ #define getpid _getpid
+#else
+ #include <unistd.h>
+#endif