aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-07-17 14:13:54 +0200
committerDaniel Seither <[email protected]>2015-07-17 15:31:28 +0200
commit66ffb49c743aa45a58011ba8cedc14b5ccac9d25 (patch)
tree33d9e617ccf2550211d4d9a9e8d20ba78e00722a /src/lib
parent4633aea0f31e01dc239cfac47c9da2467cd94fa0 (diff)
Add OS feature getsid
It is added to all OS that use getsid currently, so it must be available there.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/entropy/unix_procs/unix_procs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/entropy/unix_procs/unix_procs.cpp b/src/lib/entropy/unix_procs/unix_procs.cpp
index 3c641da70..c6ad6a700 100644
--- a/src/lib/entropy/unix_procs/unix_procs.cpp
+++ b/src/lib/entropy/unix_procs/unix_procs.cpp
@@ -72,7 +72,9 @@ void UnixProcessInfo_EntropySource::poll(Entropy_Accumulator& accum)
accum.add(::getppid(), 0.0);
accum.add(::getuid(), 0.0);
accum.add(::getgid(), 0.0);
+#if defined(BOTAN_TARGET_OS_HAS_GETSID)
accum.add(::getsid(0), 0.0);
+#endif
accum.add(::getpgrp(), 0.0);
struct ::rusage usage;