From 671bb5d76f5cdc488eded4c0466f68e683f7db49 Mon Sep 17 00:00:00 2001 From: wulf Date: Tue, 24 Apr 2001 12:29:03 +0000 Subject: Modified popt.h to support linking of libpopt with C++ applications --- devel/popt/patches/patch-ab | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 devel/popt/patches/patch-ab (limited to 'devel/popt') 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 -- cgit v1.2.3