diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 0c5734e4d..f9c78a444 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -71,6 +71,10 @@ #include "protos.h" +#if !defined(HAVE_SETSID) && defined(HAVE__SETSID) +#define setsid _setsid +#endif + #ifndef HAVE_PUTENV int putenv(const char *string); #endif diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 0c5734e4d..f9c78a444 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -71,6 +71,10 @@ #include "protos.h" +#if !defined(HAVE_SETSID) && defined(HAVE__SETSID) +#define setsid _setsid +#endif + #ifndef HAVE_PUTENV int putenv(const char *string); #endif