summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-12-19 20:23:29 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-12-19 20:23:29 +0000
commit979775a3b10b1f6dced3f6a1771d8bdff3f2e821 (patch)
tree84a43653d697857d4b52cdc5bf774a535176f0a5 /gpsd.c
parentb173cc871dd2dc49fcf66c2500b4e3e8e63d5544 (diff)
downloadgpsd-979775a3b10b1f6dced3f6a1771d8bdff3f2e821.tar.gz
Try be a little smarter about probing device permissions...
...and ownership on *BSD. Non-linux users are welcome to report the user/group/permissions of an average serial port on their OS.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 6ccb540f..2cb22993 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -70,7 +70,11 @@
* The name of a tty device from which to pick up whatever the local
* owning group for tty devices is. Used when we drop privileges.
*/
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#define PROTO_TTY "/dev/tty00"
+#else
#define PROTO_TTY "/dev/ttyS0"
+#endif
#define sub_index(s) (s - subscribers)