From 78b8b61b214051255d69348c192d764f29be3c70 Mon Sep 17 00:00:00 2001
From: Matthias Andree <matthias.andree@gmx.de>
Date: Sat, 11 Dec 2010 12:03:15 +0100
Subject: Allow linking Hesiod on Fedora 14 when compiled with g++.

---
 driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

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>
-- 
cgit v1.2.3