summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-08-20 15:16:42 +0200
committerJose <jose@zeroc.com>2013-08-20 15:16:42 +0200
commitf6586a010c5b37cd094b51a5a225614d9266c20d (patch)
treed247b4b1a83332f4b785a8a97e698f6a0d6a14dd /cpp/src
parentICE-5399 - WinRT compile failures (diff)
downloadice-f6586a010c5b37cd094b51a5a225614d9266c20d.tar.bz2
ice-f6586a010c5b37cd094b51a5a225614d9266c20d.tar.xz
ice-f6586a010c5b37cd094b51a5a225614d9266c20d.zip
Minor fix for Solaris, pthread_atfork callback must be declared extern "C"
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceUtil/Random.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/Random.cpp b/cpp/src/IceUtil/Random.cpp
index 8bd61f41270..ff4a960f09d 100644
--- a/cpp/src/IceUtil/Random.cpp
+++ b/cpp/src/IceUtil/Random.cpp
@@ -52,6 +52,9 @@ int fd = -1;
// fd state. We don't need to close the fd here as that is done
// during static destruction.
//
+extern "C"
+{
+
void childAtFork()
{
if(fd != -1)
@@ -59,6 +62,8 @@ void childAtFork()
fd = -1;
}
}
+
+}
#endif
class Init