|
From: | Chris Kuethe |
Subject: | Re: [gpsd-dev] [PATCH 1/2] Moves Linux-only ppscheck program back to contrib/. |
Date: | Mon, 8 Aug 2016 19:18:41 -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.
[Prev in Thread] | Current Thread | [Next in Thread] |