gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back to con


From: Hal Murray
Subject: Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back to contrib/.
Date: Mon, 08 Aug 2016 16:43:53 -0700

address@hidden said:
> I can;t test everthing, and I'm pretty sure I did not break all non-Linux
> builds. 

I can confirm that you broke NetBSD and FreeBSD.

As far as I know, the ioctl it needs is only available on Linux.

ppscheck.c: In function 'main':
ppscheck.c:107:16: error: 'TIOCMIWAIT' undeclared (first use in this function)
  if (ioctl(fd, TIOCMIWAIT, TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS) != 0) {

It might work to replace that with a short wait - as long as the rest of the 
code ignores extra wakeups.

-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]