diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-25 13:25:15 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-26 00:09:04 +1100 |
commit | b39593a6de5290650a01adf8699c6460570403c2 (patch) | |
tree | 10b3dbce092be86a4ea0e49b15805ffd4fea5d24 /openbsd-compat/bsd-misc.c | |
parent | 11057564eb6ab8fd987de50c3d7f394c6f6632b7 (diff) |
Add no-op getsid implmentation.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index af58f3bd2..a2f750558 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -298,3 +298,13 @@ raise(int sig) | |||
298 | kill(getpid(), sig); | 298 | kill(getpid(), sig); |
299 | } | 299 | } |
300 | #endif | 300 | #endif |
301 | |||
302 | #ifndef HAVE_GETSID | ||
303 | pid_t | ||
304 | getsid(pid_t pid) | ||
305 | { | ||
306 | errno = ENOSYS; | ||
307 | return -1; | ||
308 | } | ||
309 | #endif | ||
310 | |||