]> Pileus Git - ~andy/fetchmail/commitdiff
Allow linking Hesiod on Fedora 14 when compiled with g++.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 11 Dec 2010 11:03:15 +0000 (12:03 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 11 Dec 2010 11:03:15 +0000 (12:03 +0100)
driver.c

index fa28b9bcd2c2b69fde06f69f4eb84c398ba17a3a..0ca57cb357840ed2c71816a366c44648545b514a 100644 (file)
--- a/driver.c
+++ b/driver.c
 #endif
 #include <netdb.h>
 #ifdef HAVE_PKG_hesiod
+#ifdef __cplusplus
+extern "C" {
+#endif
 #include <hesiod.h>
+#ifdef __cplusplus
+}
+#endif
 #endif
 
 #include <langinfo.h>