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: 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

TIOCMIWAIT doesn't exist on OSX, any of the BSDs or Solaris.  I can't find any reference to it in POSIX.

On Mon, Aug 8, 2016 at 4:43 PM, Hal Murray <address@hidden> wrote:

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.







--
GDB has a 'break' feature; why doesn't it have 'fix' too?

reply via email to

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