From b1702f9a676fe49902dcfa1140b167968a4dc287 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Mon, 1 Jan 2018 18:15:13 +0100 Subject: Fix daemon() handling on hurd/kfreebsd. Debian Bug #879963 Thanks to Pino Toscano for the patch. --- os_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os_compat.c') diff --git a/os_compat.c b/os_compat.c index 8c117379..cc7b27af 100644 --- a/os_compat.c +++ b/os_compat.c @@ -106,7 +106,7 @@ int os_daemon(int nochdir, int noclose) #else /* HAVE_DAEMON */ -#ifdef __linux__ +#if defined (__linux__) || defined (__GLIBC__) /* daemon() needs _DEFAULT_SOURCE */ #undef _DEFAULT_SOURCE -- cgit v1.2.1