Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

getpid works on darwin and sunos (and other places as well)

  • Loading branch information...
commit d7d4e35459f0fa9107f1ed0f1630551859b12956 1 parent 51b7774
@erh erh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bson/oid.cpp
View
2  bson/oid.cpp
@@ -31,7 +31,7 @@ namespace mongo {
unsigned pid;
#if defined(_WIN32)
pid = (unsigned short) GetCurrentProcessId();
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__APPLE__) || defined(__sunos__)
pid = (unsigned short) getpid();
#else
pid = (unsigned short) security.getNonce();
Please sign in to comment.
Something went wrong with that request. Please try again.