Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 1998 14:45:47 -0700 (PDT)
From:      Craig Spannring <cts@internetcds.com>
To:        Poul-Henning Kamp <phk@FreeBSD.ORG>
Cc:        cts@internetcds.com, freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/7229
Message-ID:  <199807132145.OAA10024@bangkok.office.cdsnet.net>
In-Reply-To: <199807110817.BAA18603@freefall.freebsd.org>
References:  <199807110817.BAA18603@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

diff -u orig/pcap-int.h patched/pcap-int.h
--- orig/pcap-int.h	Mon Jul 13 14:28:46 1998
+++ patched/pcap-int.h	Mon Jul 13 14:29:03 1998
@@ -36,6 +36,10 @@
 #ifndef pcap_int_h
 #define pcap_int_h
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <pcap.h>
 
 /*
@@ -109,4 +113,9 @@
 
 /* XXX */
 extern	int pcap_fddipad;
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif
diff -u orig/pcap-namedb.h patched/pcap-namedb.h
--- orig/pcap-namedb.h	Mon Jul 13 14:28:46 1998
+++ patched/pcap-namedb.h	Mon Jul 13 14:29:03 1998
@@ -36,6 +36,11 @@
 #ifndef lib_pcap_ethers_h
 #define lib_pcap_ethers_h
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
+
 /*
  * As returned by the pcap_next_etherent()
  * XXX this stuff doesn't belong in this interface, but this
@@ -72,5 +77,10 @@
 int __pcap_atodn(const char *, bpf_u_int32 *);
 int __pcap_atoin(const char *, bpf_u_int32 *);
 u_short	__pcap_nametodnaddr(const char *);
+
+#ifdef __cplusplus
+}
+#endif
+     
 
 #endif
diff -u orig/pcap.h patched/pcap.h
--- orig/pcap.h	Mon Jul 13 14:28:46 1998
+++ patched/pcap.h	Mon Jul 13 14:29:03 1998
@@ -43,6 +43,11 @@
 
 #include <stdio.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
+
 #define PCAP_VERSION_MAJOR 2
 #define PCAP_VERSION_MINOR 4
 
@@ -134,4 +139,10 @@
 /* XXX this guy lives in the bpf tree */
 u_int	bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
 char	*bpf_image(struct bpf_insn *, int);
+
+#ifdef __cplusplus
+}
+#endif
+     
+
 #endif

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807132145.OAA10024>