diff options
-rw-r--r-- | cpp/src/IceUtil/Random.cpp | 5 |
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 |