summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 19:59:49 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 19:59:49 -0700
commit67f0cb9c5f4cf2fc12d47be6f0afdccf335f1336 (patch)
treef56e32387a50bd21e1eb62616e8a3d4ac7b96462 /gpsd.c
parent5e844a4e64c4882e1b67f9d676d7067241c46974 (diff)
downloadgpsd-67f0cb9c5f4cf2fc12d47be6f0afdccf335f1336.tar.gz
nice() needs _XOPEN_SOURCE 500, setgroups(), daemon() needs _DEFAULT_SOURCE
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 2056647a..f028a093 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -6,6 +6,11 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+/* nice() needs _XOPEN_SOURCE, 500 means X/Open 1995 */
+#define _XOPEN_SOURCE 500
+/* setgroups() and daemon() needs _DEFAULT_SOURCE */
+#define _DEFAULT_SOURCE
+
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h> /* for select() */