summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwulf <wulf@pkgsrc.org>2001-04-24 12:29:03 +0000
committerwulf <wulf@pkgsrc.org>2001-04-24 12:29:03 +0000
commit671bb5d76f5cdc488eded4c0466f68e683f7db49 (patch)
tree9d53b9d0d572a93211685a334a51af9a1916244e
parent15e9ce8614e7f7c1adb2581217576e5f496dcce5 (diff)
downloadpkgsrc-671bb5d76f5cdc488eded4c0466f68e683f7db49.tar.gz
Modified popt.h to support linking of libpopt with C++ applications
-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