]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/getopt.h
2005-05-15 Paul Jakma <paul@dishone.st>
[mirror_frr.git] / lib / getopt.h
index c4519b7f4733bd4abe5c107113e66acdfa2d6352..68a9acfbefe51595dfc65717692c324a6878a6d1 100644 (file)
@@ -99,12 +99,12 @@ struct option
 #define optional_argument      2
 
 #if defined (__STDC__) && __STDC__
-#ifdef __GNU_LIBRARY__
+#if defined (__GNU_LIBRARY__) || defined (__EXTENSIONS__)
 /* 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.  */
 extern int getopt (int argc, char *const *argv, const char *shortopts);
-#else /* not __GNU_LIBRARY__ */
+#else /* not __GNU_LIBRARY__ or __EXTENSIONS__ */
 extern int getopt (void);
 #endif /* __GNU_LIBRARY__ */
 extern int getopt_long (int argc, char *const *argv, const char *shortopts,