summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRobert Norris <rw_norris@hotmail.com>2017-03-05 18:43:33 +0000
committerFred Wright <fw@fwright.net>2017-03-05 13:43:14 -0800
commit9f870a11218d0bc6364d6b333fd878106746adf9 (patch)
tree2e69141ae377dcb27c09fa7771b61fd30272fc43 /SConstruct
parenta32c93f5c70af935e4ff02e19959da65f078d166 (diff)
downloadgpsd-9f870a11218d0bc6364d6b333fd878106746adf9.tar.gz
OS syslog compatibility fallback.
Mainly for Windows systems which doesn't have syslog(). Implement simple fallback to print to stderr, rather than a more complicated use of Windows Event Log. Also basic fallbacks for openlog() and closelog() which don't really do anything. TESTED: Functions build on Windows cross build 'scons build-all check' passes on Linux Signed-off-by: Fred Wright <fw@fwright.net>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f443184d..a39912fd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -761,7 +761,7 @@ else:
announce("You do not have the endian.h header file. RTCM V2 support disabled.")
env["rtcm104v2"] = False
- for hdr in ("sys/un", "sys/socket", "sys/select", "netdb", "netinet/in", "netinet/ip", "arpa/inet", "termios", "winsock2"):
+ for hdr in ("sys/un", "sys/socket", "sys/select", "netdb", "netinet/in", "netinet/ip", "arpa/inet", "syslog", "termios", "winsock2"):
if config.CheckHeader(hdr + ".h"):
confdefs.append("#define HAVE_%s_H 1\n" % hdr.replace("/","_").upper())
else: