]> Pileus Git - ~andy/fetchmail/blobdiff - getopt.h
Note Earl's regression fix for SSL_CTX_clear_options() on older OpenSSL.
[~andy/fetchmail] / getopt.h
index 4ac33b71824d389cbc70c9eb0f5e0b2073b28567..97b62317e8596cc74037e78868e84798cd46ab80 100644 (file)
--- a/getopt.h
+++ b/getopt.h
@@ -95,7 +95,7 @@ struct option
 #define optional_argument      2
 
 #if defined (__STDC__) && __STDC__
-#ifdef __GNU_LIBRARY__
+#if defined (__GNU_LIBRARY__) || defined(__cplusplus)
 /* 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.  */