$OpenBSD: patch-code_tools_lcc_cpp_unix_c,v 1.1 2017/05/26 10:36:44 mestre Exp $

Index: code/tools/lcc/cpp/unix.c
--- code/tools/lcc/cpp/unix.c.orig
+++ code/tools/lcc/cpp/unix.c
@@ -2,10 +2,10 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/stat.h>
 #include "cpp.h"
 
-extern	int lcc_getopt(int, char *const *, const char *);
 extern	char	*optarg, rcsid[];
 extern	int	optind;
 int	verbose;
@@ -24,7 +24,7 @@ setup(int argc, char **argv)
 	int   numIncludeDirs = 0;
 
 	setup_kwtab();
-	while ((c = lcc_getopt(argc, argv, "MNOVv+I:D:U:F:lg")) != -1)
+	while ((c = getopt(argc, argv, "MNOVv+I:D:U:F:lg")) != -1)
 		switch (c) {
 		case 'N':
 			for (i=0; i<NINCLUDE; i++)
