diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-08-10 16:03:12 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-08-10 16:03:12 +0000 |
commit | f0751ff77cad26b5b7659f5a82b3986eeafea422 (patch) | |
tree | df0f12c73f4e216086e01c171435664c62dcb66e /devel/libexecinfo | |
parent | 6246576cb3177a8aeda6461e21adab4f23de415f (diff) | |
download | FreeBSD-ports-f0751ff77cad26b5b7659f5a82b3986eeafea422.zip FreeBSD-ports-f0751ff77cad26b5b7659f5a82b3986eeafea422.tar.gz |
Patch include so that it works with c++.
Diffstat (limited to 'devel/libexecinfo')
-rw-r--r-- | devel/libexecinfo/Makefile | 1 | ||||
-rw-r--r-- | devel/libexecinfo/files/patch-execinfo.h | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/devel/libexecinfo/Makefile b/devel/libexecinfo/Makefile index 6b2b2df..92496da 100644 --- a/devel/libexecinfo/Makefile +++ b/devel/libexecinfo/Makefile @@ -7,6 +7,7 @@ PORTNAME= libexecinfo PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://demo.portaone.com/~sobomax/freestuff/ diff --git a/devel/libexecinfo/files/patch-execinfo.h b/devel/libexecinfo/files/patch-execinfo.h new file mode 100644 index 0000000..8ac54b9 --- /dev/null +++ b/devel/libexecinfo/files/patch-execinfo.h @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- execinfo.h 2003/08/10 05:43:54 1.1 ++++ execinfo.h 2003/08/10 05:44:11 +@@ -29,8 +29,16 @@ + #ifndef _EXECINFO_H_ + #define _EXECINFO_H_ + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + int backtrace(void **, int); + char ** backtrace_symbols(void *const *, int); + void backtrace_symbols_fd(void *const *, int, int); ++ ++#ifdef __cplusplus ++} ++#endif + + #endif /* _EXECINFO_H_ */ |