aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-04-28 22:48:40 +0800
committerobrien <obrien@FreeBSD.org>1997-04-28 22:48:40 +0800
commit95b66c29a5e6eb034a71c2ee63d818b3b1316f7d (patch)
tree2560822ee36619ffd269025d53b38ca4d0a576d7
parentf8433ee4d372ea3789e4b96c2af53cea2acbc77e (diff)
downloadfreebsd-ports-gnome-95b66c29a5e6eb034a71c2ee63d818b3b1316f7d.tar.gz
freebsd-ports-gnome-95b66c29a5e6eb034a71c2ee63d818b3b1316f7d.tar.zst
freebsd-ports-gnome-95b66c29a5e6eb034a71c2ee63d818b3b1316f7d.zip
Proctect contents of malloc.h as C code if included in a C++ program.
-rw-r--r--devel/libmalloc/files/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/libmalloc/files/patch-ab b/devel/libmalloc/files/patch-ab
new file mode 100644
index 000000000000..7b33b7353492
--- /dev/null
+++ b/devel/libmalloc/files/patch-ab
@@ -0,0 +1,23 @@
+--- malloc.h.orig Fri Jul 30 17:56:34 1993
++++ malloc.h Mon Apr 28 07:36:12 1997
+@@ -3,6 +3,10 @@
+ #ifndef __XMALLOC_H__
+ #define __XMALLOC_H__
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ #if defined(ANSI_TYPES) || defined(__STDC__)
+ #define univptr_t void *
+ #else /* ! ANSI_TYPES */
+@@ -110,5 +114,9 @@
+ #endif
+
+ #undef __proto
++
++#ifdef __cplusplus
++}
++#endif
+
+ #endif /* __XMALLOC_H__ */ /* Do not add anything after this line */