summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 6e133f48..680f0625 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -25,8 +25,6 @@
/* cfmakeraw() needs _DEFAULT_SOURCE */
#define _DEFAULT_SOURCE
-/* daemon() needs _DEFAULT_SOURCE */
-#define _DEFAULT_SOURCE
#include <time.h> /* for time_t */
@@ -251,7 +249,7 @@ int main(int argc, char **argv)
/* Daemonize if the user requested it. */
if (daemonize)
- if (daemon(0, 0) != 0)
+ if (os_daemon(0, 0) != 0)
(void)fprintf(stderr,
"gpspipe: demonization failed: %s\n",
strerror(errno));