aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-12-12 18:26:02 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-12-12 18:26:02 +0100
commitd19dfa6ee1573633698a5c13efe50dcca5f77a0e (patch)
treed3ecf1b4fe0a1fa866180e9e821dd1d5a2fa31b5
parente9212a2a7f3e4e720129a9422ff177e1c9fddda1 (diff)
downloadfetchmail-d19dfa6ee1573633698a5c13efe50dcca5f77a0e.tar.gz
fetchmail-d19dfa6ee1573633698a5c13efe50dcca5f77a0e.tar.bz2
fetchmail-d19dfa6ee1573633698a5c13efe50dcca5f77a0e.zip
C++ compatibility hack.
-rw-r--r--getopt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/getopt.h b/getopt.h
index 4ac33b71..97b62317 100644
--- 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. */