summaryrefslogtreecommitdiffstats
path: root/bsd-misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-misc.h')
-rw-r--r--bsd-misc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsd-misc.h b/bsd-misc.h
index 0546ef1f..ae2b3fff 100644
--- a/bsd-misc.h
+++ b/bsd-misc.h
@@ -27,6 +27,11 @@
#include "config.h"
+#ifndef HAVE_SETSID
+#define setsid() setpgrp(0, getpid())
+#endif /* !HAVE_SETSID */
+
+
#ifndef HAVE_SETENV
int setenv(const char *name, const char *value, int overwrite);
#endif /* !HAVE_SETENV */