aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-12-11 12:03:15 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-12-11 12:03:15 +0100
commit78b8b61b214051255d69348c192d764f29be3c70 (patch)
treefe525830fb3b1f854b03238170d556134c26aeaa
parent1e4c557caf2a6775fd424f5c41b2e0159208a1b1 (diff)
downloadfetchmail-78b8b61b214051255d69348c192d764f29be3c70.tar.gz
fetchmail-78b8b61b214051255d69348c192d764f29be3c70.tar.bz2
fetchmail-78b8b61b214051255d69348c192d764f29be3c70.zip
Allow linking Hesiod on Fedora 14 when compiled with g++.
-rw-r--r--driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index fa28b9bc..0ca57cb3 100644
--- a/driver.c
+++ b/driver.c
@@ -36,7 +36,13 @@
#endif
#include <netdb.h>
#ifdef HAVE_PKG_hesiod
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <hesiod.h>
+#ifdef __cplusplus
+}
+#endif
#endif
#include <langinfo.h>