3caae615ab
all the appropriate GPS lingos and (hopefully) can provide a unified interface to all of them.
13 lines
626 B
Plaintext
13 lines
626 B
Plaintext
$OpenBSD: patch-serial_c,v 1.1.1.1 2005/09/05 00:34:59 marcm Exp $
|
|
--- serial.c.orig Tue Aug 16 17:07:13 2005
|
|
+++ serial.c Sun Aug 21 14:12:28 2005
|
|
@@ -97,7 +97,7 @@ void gpsd_set_speed(struct gps_device_t
|
|
int gpsd_open(struct gps_device_t *session)
|
|
{
|
|
gpsd_report(1, "opening GPS data source at '%s'\n", session->gpsdata.gps_device);
|
|
- if ((session->gpsdata.gps_fd = open(session->gpsdata.gps_device, O_RDWR|O_NOCTTY)) < 0) {
|
|
+ if ((session->gpsdata.gps_fd = open(session->gpsdata.gps_device, O_RDWR|O_NONBLOCK|O_NOCTTY)) < 0) {
|
|
gpsd_report(1, "device open failed: %s\n", strerror(errno));
|
|
return -1;
|
|
}
|