summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMatt <ukyg9e5r6k7gubiekd6@yahoo.com>2014-09-28 03:37:05 +1000
committerEric S. Raymond <esr@thyrsus.com>2014-09-27 22:43:13 -0400
commit65000a4058788fff214fc4e37cae34f268d182f7 (patch)
tree729dbea9da4b59bdf3afc8c6c36712a2cf1fbbad /SConstruct
parentf25e639af0a40415aa28aa892b7c8e9f022aad46 (diff)
downloadgpsd-65000a4058788fff214fc4e37cae34f268d182f7.tar.gz
Add scons check for gmtime
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The recent addition of a prototype for gmtime in gpsd.h breaks the cygwin compile. Cygwin has gmtime, so the declarations conflict. Handle this by adding an scons check for gmtime, and make declaration of the bundled version conditional on absence of the system-supplied version. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUJvXAAAoJECH/phKUbjXCdgwH/RrMznXe51HHR5eLD3Y/vor8 h514XtvlzB/ghWQcAuiWX8mGy/J7k8OJFb8HmUXPAhSuzeiRooZXLz7uk3UvfeGv 4p5MfND3E7FCZVBu9/o9n5gf27wddXKChHVfAZ1MsnusRmwfjAiPoTr0iVoarWLw s/8tjvnHJg4A3i08nu4Y+Z9rwyDqkmB2YPQ0Zs+deCsbK4AA4Lx3oVkgDkVCk7zz vBZPueS6ylAMb1hbEthW3l7St3S2ESLG7nIxwv1lQ0mmAi70pknHeLYbiBLU0QqT A2ZsOOajespqq9/pmxP6ZJcwy8DtNXcj8LvRcNAOrjiV52MQUwTZGLLwVP5WMxk= =PoQy -----END PGP SIGNATURE-----
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 36d0be76..60785d57 100644
--- a/SConstruct
+++ b/SConstruct
@@ -656,7 +656,7 @@ else:
# check function after libraries, because some function require library
# for example clock_gettime() require librt on Linux
- for f in ("daemon", "strlcpy", "strlcat", "clock_gettime","getsid"):
+ for f in ("daemon", "strlcpy", "strlcat", "clock_gettime", "getsid", "gmtime"):
if config.CheckFunc(f):
confdefs.append("#define HAVE_%s 1\n" % f.upper())
else: