summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gps2udp.c b/gps2udp.c
index b07eaa1f..c02d8929 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -12,7 +12,7 @@
*
*/
-/* strsep() and daemon() needs _DEFAULT_SOURCE */
+/* strsep() needs _DEFAULT_SOURCE */
#define _DEFAULT_SOURCE
#include <time.h>
@@ -428,7 +428,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,
"gps2udp: demonization failed: %s\n",
strerror(errno));