diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 03:18:59 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 03:18:59 -0500 |
commit | 8b83e44880b90f60cd9cf9c8a0039bb090fff05d (patch) | |
tree | 8e8f2aa11d82957786d8269837d8ebf6d101baaf /gpsd.h-tail | |
parent | 25c4f44f42a2fa9a43042edb1ca0e7f27797735e (diff) | |
download | gpsd-8b83e44880b90f60cd9cf9c8a0039bb090fff05d.tar.gz |
sys/timepps.h needs sys/time.h on NetBSD, perhaps FreeBSD
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 8a2e37cb..441b4ec4 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -11,7 +11,7 @@ #include "gps.h" /* - * Tell GCC that we want thread-safe behavior wuth _REENTRANT; + * Tell GCC that we want thread-safe behavior with _REENTRANT; * in particular, errno must be thread-local. * Tell POSIX-conforming implementations with _POSIX_THREAD_SAFE_FUNCTIONS. * See http://www.unix.org/whitepapers/reentrant.html @@ -34,6 +34,7 @@ // include unistd.h here as it is missing on older pps-tools releases. // 'close' is not defined otherwise. #include <unistd.h> +#include <sys/time.h> #include <sys/timepps.h> #endif /* S_SPLINT_S */ #endif |