--- libgetopt/getopt.h.orig	Fri Feb  8 16:40:49 2002
+++ libgetopt/getopt.h	Fri Feb  8 16:41:15 2002
@@ -138,7 +138,7 @@
    `getopt'.  */
 
 #if (defined __STDC__ && __STDC__) || defined __cplusplus
-# ifdef __GNU_LIBRARY__
+# if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
 /* Many other libraries have conflicting prototypes for getopt, with
    differences in the consts, in stdlib.h.  To avoid compilation
    errors, only prototype getopt for the GNU C library.  */
