summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-18 11:36:32 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-18 11:36:32 -0500
commitd7d4e35459f0fa9107f1ed0f1630551859b12956 (patch)
tree1867eb9d4f04292822db478aebeffa68fa7bb811 /bson
parent51b77743b10f45570aac539309fc4986dc2002de (diff)
downloadmongo-d7d4e35459f0fa9107f1ed0f1630551859b12956.tar.gz
getpid works on darwin and sunos (and other places as well)
Diffstat (limited to 'bson')
-rw-r--r--bson/oid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bson/oid.cpp b/bson/oid.cpp
index 4cb624e808e..6aa07303bbb 100644
--- a/bson/oid.cpp
+++ b/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();