gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] Shift libgps_dbus inclusion of syslog.h only if dbus


From: Rob Norris
Subject: [gpsd-dev] [PATCH] Shift libgps_dbus inclusion of syslog.h only if dbus is being used.
Date: Mon, 7 Mar 2016 23:52:37 +0000

This can simplify the build of libgps on all platforms,
 otherwise detection of syslog capability and further #ifdef clauses around 
syslog usage would be required.
---
 libgps_dbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgps_dbus.c b/libgps_dbus.c
index e179330..0935965 100644
--- a/libgps_dbus.c
+++ b/libgps_dbus.c
@@ -2,7 +2,6 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
-#include <syslog.h>
 #include <math.h>
 #include <time.h>
 #include <errno.h>
@@ -15,6 +14,7 @@
 #include "libgps.h"
 
 #if defined(DBUS_EXPORT_ENABLE)
+#include <syslog.h>
 
 struct privdata_t
 {
-- 
2.7.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]