summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-14 08:09:49 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-14 08:09:49 -0500
commit1e0126fcbf956b5893dabcac2c7c3f5002ce910c (patch)
treebfbf7b365af98444431d391a464a5ecb5bf5e87f /libgps_core.c
parenteead1c2ac4df683dd43c8b6e0a1c766a00f7c702 (diff)
downloadgpsd-1e0126fcbf956b5893dabcac2c7c3f5002ce910c.tar.gz
More header simplification. All regression tests pass.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 306cfbdc..9d96ec14 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -3,9 +3,6 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
-#ifndef S_SPLINT_S
-#include <unistd.h>
-#endif /* S_SPLINT_S */
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
@@ -15,6 +12,9 @@
#include <locale.h>
#include <assert.h>
#include <sys/time.h> /* expected to have a select(2) prototype a la SuS */
+#ifndef S_SPLINT_S
+#include <unistd.h>
+#endif /* S_SPLINT_S */
#include "gpsd.h"
#include "gps_json.h"