diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-19 20:23:29 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-19 20:23:29 +0000 |
commit | 979775a3b10b1f6dced3f6a1771d8bdff3f2e821 (patch) | |
tree | 84a43653d697857d4b52cdc5bf774a535176f0a5 /gpsd.c | |
parent | b173cc871dd2dc49fcf66c2500b4e3e8e63d5544 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |