From ff398eb82a620eed391e73bb9b60be096aeac5ad Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 15 Aug 2016 22:02:03 -0700 Subject: In POSIX 2001, getsid() needs _XOPEN_SOURCE >= 500 --- libgpsd_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libgpsd_core.c') 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 #include #include -- cgit v1.2.1