--- main.c.orig	Tue May 30 13:13:50 1995
+++ main.c	Sun Mar 26 01:18:33 2000
@@ -9,7 +9,7 @@ Boolean gcverbose	= FALSE;	/* -G */
 Boolean gcinfo		= FALSE;	/* -I */
 #endif
 
-#if !HPUX && !defined(linux)
+#if !HPUX && !defined(linux) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
 extern int getopt (int argc, char **argv, const char *optstring);
 #endif
 extern int optind;
