diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-15 22:02:03 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-15 22:02:03 -0700 |
commit | ff398eb82a620eed391e73bb9b60be096aeac5ad (patch) | |
tree | 6c4f5ce26fe7be13ddfb1eb1ca4a6d35301f3379 /libgpsd_core.c | |
parent | bdc21096c8bf8e49c9149a048c9b2b010ab9e6ef (diff) | |
download | gpsd-ff398eb82a620eed391e73bb9b60be096aeac5ad.tar.gz |
In POSIX 2001, getsid() needs _XOPEN_SOURCE >= 500
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 31632557..90743d72 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -9,6 +9,10 @@ * This file is Copyright (c) 2010 by the GPSD project * BSD terms apply: see the file COPYING in the distribution root for details. */ + +/* getsid() needs _XOPEN_SOURCE, 500 means X/Open 1995 */ +#define _XOPEN_SOURCE 500 + #include <time.h> #include <stdio.h> #include <stdlib.h> |