diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-29 08:44:52 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-29 08:44:52 -0400 |
commit | b158465b88083b7ad42b9ee21e8276293c1bb37c (patch) | |
tree | a38fb55d0e88c51d50a0ec51a2084678088b6735 | |
parent | a48dcfb2e85e5ca07458ae6dcc33087c4f27695a (diff) | |
download | gpsd-b158465b88083b7ad42b9ee21e8276293c1bb37c.tar.gz |
Make te default socket location available to all programs.
-rw-r--r-- | gpsd.h-tail | 4 | ||||
-rw-r--r-- | gpsdctl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index f39032b2..8a432499 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -27,6 +27,10 @@ typedef unsigned int speed_t; #define JSON_DATE_MAX 24 /* ISO8601 timestamp with 2 decimal places */ +#ifndef DEFAULT_GPSD_SOCKET +#define DEFAULT_GPSD_SOCKET "/var/run/gpsd.sock" +#endif + /* Some internal capabilities depend on which drivers we're compiling. */ #if !defined(NMEA_ENABLE) && (defined(FV18_ENABLE) || defined(MTK3301_ENABLE) || defined(TNT_ENABLE) || defined(OCEANSERVER_ENABLE) || defined(GPSCLOCK_ENABLE)) #define NMEA_ENABLE @@ -20,7 +20,7 @@ #include "gpsd.h" -static char *control_socket = "/var/run/gpsd.sock"; +static char *control_socket = DEFAULT_GPSD_SOCKET; static char *gpsd_options = ""; static int gpsd_control(char *action, char *argument) |