summaryrefslogtreecommitdiff
path: root/devel/popt
diff options
context:
space:
mode:
authorwulf <wulf>2001-04-24 12:29:03 +0000
committerwulf <wulf>2001-04-24 12:29:03 +0000
commitd8da71cf11050822d242c8facfb1d1fc4f8f11e5 (patch)
tree9d53b9d0d572a93211685a334a51af9a1916244e /devel/popt
parente1a2ce98e40565bbe076b86cf9b62c9889592bd3 (diff)
downloadpkgsrc-d8da71cf11050822d242c8facfb1d1fc4f8f11e5.tar.gz
Modified popt.h to support linking of libpopt with C++ applications
Diffstat (limited to 'devel/popt')
-rw-r--r--devel/popt/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/popt/patches/patch-ab b/devel/popt/patches/patch-ab
new file mode 100644
index 00000000000..df0530302d8
--- /dev/null
+++ b/devel/popt/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1 2001/04/24 12:29:03 wulf Exp $
+
+--- popt.h.orig Mon Apr 23 23:13:20 2001
++++ popt.h Mon Apr 23 23:15:20 2001
+@@ -76,6 +76,9 @@
+ const struct poptOption * opt,
+ const char * arg, void * data);
+
++#ifdef __cplusplus
++extern "C" {
++#endif
+ poptContext poptGetContext(char * name, int argc, char ** argv,
+ const struct poptOption * options, int flags);
+ void poptResetContext(poptContext con);
+@@ -106,5 +109,8 @@
+ void poptPrintUsage(poptContext con, FILE * f, int flags);
+ void poptSetOtherOptionHelp(poptContext con, const char * text);
+ const char * poptGetInvocationName(poptContext con);
++#ifdef __cplusplus
++}
++#endif
+
+ #endif