diff options
author | Bernd Zeimetz <bernd@bzed.de> | 2018-01-01 18:15:13 +0100 |
---|---|---|
committer | Bernd Zeimetz <bernd@bzed.de> | 2018-01-01 18:16:49 +0100 |
commit | b1702f9a676fe49902dcfa1140b167968a4dc287 (patch) | |
tree | e2c2ecaf1553cd879acff00718fbbb82d44ce322 /os_compat.c | |
parent | 8c27ec871089baee81b3b07b577f3c9df63fa55f (diff) | |
download | gpsd-b1702f9a676fe49902dcfa1140b167968a4dc287.tar.gz |
Fix daemon() handling on hurd/kfreebsd.
Debian Bug #879963
Thanks to Pino Toscano for the patch.
Diffstat (limited to 'os_compat.c')
-rw-r--r-- | os_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |