diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-15 19:59:49 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-15 19:59:49 -0700 |
commit | 67f0cb9c5f4cf2fc12d47be6f0afdccf335f1336 (patch) | |
tree | f56e32387a50bd21e1eb62616e8a3d4ac7b96462 /gpsd.c | |
parent | 5e844a4e64c4882e1b67f9d676d7067241c46974 (diff) | |
download | gpsd-67f0cb9c5f4cf2fc12d47be6f0afdccf335f1336.tar.gz |
nice() needs _XOPEN_SOURCE 500, setgroups(), daemon() needs _DEFAULT_SOURCE
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() */ |