summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdlib/getopt.33
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index bdbed8d0784f..88fb51f38fec 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -164,8 +164,7 @@ The
function returns \-1 when the argument list is exhausted.
.Sh EXAMPLES
.Bd -literal -compact
-extern char *optarg;
-extern int optind;
+#include <unistd.h>
int bflag, ch, fd;
bflag = 0;