summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2013-11-15 15:47:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2013-11-15 15:47:54 +0000
commitaed8306d3991ea80ca3b1072b212bfea5dc431e7 (patch)
tree5be93dfba41352f140eb2aa049a4d601f90a3f21
parent4c1e1cc8534eb39c2704ae097bfa26eba1933d78 (diff)
Include unistd.h as it is the standard location for getopt().
From Eitan Adler
-rw-r--r--usr.bin/jot/jot.c3
-rw-r--r--usr.bin/rs/rs.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index 8c8dbf8b9b4..b773e6001d3 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jot.c,v 1.21 2012/01/30 14:08:18 okan Exp $ */
+/* $OpenBSD: jot.c,v 1.22 2013/11/15 15:47:53 millert Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#define REPS_DEF 100
#define BEGIN_DEF 1
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c
index 8e9a24292f1..3c6ed1a4a72 100644
--- a/usr.bin/rs/rs.c
+++ b/usr.bin/rs/rs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rs.c,v 1.22 2012/12/03 19:26:24 otto Exp $ */
+/* $OpenBSD: rs.c,v 1.23 2013/11/15 15:47:53 millert Exp $ */
/*-
* Copyright (c) 1993
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
long flags;
#define TRANSPOSE 000001