diff options
author | Rob Norris <rw_norris@hotmail.com> | 2016-03-07 23:52:37 +0000 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2016-03-07 19:35:27 -0500 |
commit | 709b6c4d01acc5e6e51afacd0668216b1e04a324 (patch) | |
tree | 91eca4433fa665b5cf695452acdf71df55f21cc3 /libgps_dbus.c | |
parent | 9df2c4581d15cfbeca40f0c3d5584bdeb56985ca (diff) | |
download | gpsd-709b6c4d01acc5e6e51afacd0668216b1e04a324.tar.gz |
Shift libgps_dbus inclusion of syslog.h only if dbus is being used.
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.
Diffstat (limited to 'libgps_dbus.c')
-rw-r--r-- | libgps_dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_dbus.c b/libgps_dbus.c index 7ecd9421..29cd0dd0 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 { |