summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-11-17 20:19:37 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-11-17 20:19:37 +0000
commit84deb05d61b5c1d9fbf912846d328fc497f52b65 (patch)
treed071bb5c3fb1fc26857ebbf5a005af0c0a226383
parent0bb25668abf5783e65149a7cbdb640b5eb657102 (diff)
Include unistd.h as it is the standard location for getopt().
OK millert@
-rw-r--r--usr.bin/locate/code/locate.code.c9
-rw-r--r--usr.bin/rup/rup.c3
-rw-r--r--usr.bin/tmux/arguments.c3
-rw-r--r--usr.bin/units/units.c3
4 files changed, 12 insertions, 6 deletions
diff --git a/usr.bin/locate/code/locate.code.c b/usr.bin/locate/code/locate.code.c
index b2f59ef4f95..50c42c67cae 100644
--- a/usr.bin/locate/code/locate.code.c
+++ b/usr.bin/locate/code/locate.code.c
@@ -1,5 +1,5 @@
/*
- * $OpenBSD: locate.code.c,v 1.16 2009/10/27 23:59:39 deraadt Exp $
+ * $OpenBSD: locate.code.c,v 1.17 2013/11/17 20:19:36 okan Exp $
*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: locate.code.c,v 1.16 2009/10/27 23:59:39 deraadt Exp $
+ * $Id: locate.code.c,v 1.17 2013/11/17 20:19:36 okan Exp $
*/
/*
@@ -79,11 +79,14 @@
*/
#include <sys/param.h>
+
#include <err.h>
#include <errno.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdio.h>
+#include <unistd.h>
+
#include "locate.h"
#define BGBUFSIZE (NBG * 2) /* size of bigram buffer */
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c
index c7d31f30b14..b976f2bed7c 100644
--- a/usr.bin/rup/rup.c
+++ b/usr.bin/rup/rup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rup.c,v 1.25 2013/04/03 04:12:23 deraadt Exp $ */
+/* $OpenBSD: rup.c,v 1.26 2013/11/17 20:19:36 okan Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -39,6 +39,7 @@
#include <rpc/pmap_clnt.h>
#include <arpa/inet.h>
#include <err.h>
+#include <unistd.h>
#undef FSHIFT /* Use protocol's shift and scale values */
#undef FSCALE
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index 4a90ad877b0..37c23dee824 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.5 2013/05/31 12:19:34 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.6 2013/11/17 20:19:36 okan Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "tmux.h"
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c
index 3f0c676eebc..9b24ed52260 100644
--- a/usr.bin/units/units.c
+++ b/usr.bin/units/units.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: units.c,v 1.18 2013/01/04 19:31:28 jmc Exp $ */
+/* $OpenBSD: units.c,v 1.19 2013/11/17 20:19:36 okan Exp $ */
/* $NetBSD: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $ */
/*
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <unistd.h>
#define UNITSFILE "/usr/share/misc/units.lib"