summaryrefslogtreecommitdiff
path: root/zmq/utils/getpid_compat.h
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2014-08-11 16:33:29 -0400
committerMicah Anderson <micah@riseup.net>2014-08-11 16:33:29 -0400
commitcce638a8adf4e045ca5505afea4bda57753c31dd (patch)
treeb5e139d3359ac5b8c7b1afa8acbb1b5b6051c626 /zmq/utils/getpid_compat.h
initial import of debian package
Diffstat (limited to 'zmq/utils/getpid_compat.h')
-rw-r--r--zmq/utils/getpid_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zmq/utils/getpid_compat.h b/zmq/utils/getpid_compat.h
new file mode 100644
index 0000000..47ce90f
--- /dev/null
+++ b/zmq/utils/getpid_compat.h
@@ -0,0 +1,6 @@
+#ifdef _WIN32
+ #include <process.h>
+ #define getpid _getpid
+#else
+ #include <unistd.h>
+#endif