diff options
author | joerg <joerg@pkgsrc.org> | 2015-07-05 12:52:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-07-05 12:52:39 +0000 |
commit | fbff5567f572969569ed7aa3e70aef2d2552903a (patch) | |
tree | 4eba9f3d5e5f65e1b382793173056263eb552074 /databases/sqlrelay/patches | |
parent | e38f48c01cf9c0609f2b6d1b381000cea4afc5d9 (diff) | |
download | pkgsrc-fbff5567f572969569ed7aa3e70aef2d2552903a.tar.gz |
Restore patch for src/api/php/sql_relay.cpp:
Do not pretend that C++ is C.
Diffstat (limited to 'databases/sqlrelay/patches')
-rw-r--r-- | databases/sqlrelay/patches/patch-src_api_php_sql__relay.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/databases/sqlrelay/patches/patch-src_api_php_sql__relay.cpp b/databases/sqlrelay/patches/patch-src_api_php_sql__relay.cpp new file mode 100644 index 00000000000..d05d4dba139 --- /dev/null +++ b/databases/sqlrelay/patches/patch-src_api_php_sql__relay.cpp @@ -0,0 +1,35 @@ +$NetBSD: patch-src_api_php_sql__relay.cpp,v 1.3 2015/07/05 12:52:39 joerg Exp $ + +--- src/api/php/sql_relay.cpp.orig 2015-07-05 10:40:12.000000000 +0000 ++++ src/api/php/sql_relay.cpp +@@ -16,29 +16,7 @@ + #define ZTS 1 + #endif + +-extern "C" { +- #ifndef WIN32 +- #ifdef __cplusplus +- #undef __cplusplus +- #define cpluspluswasdefined +- #endif +- #ifndef HAVE_SOCKLEN_T +- #define HAVE_SOCKLEN_T +- #endif +- #ifndef _WCHAR_T_DECLARED +- #define _WCHAR_T_DECLARED +- #endif +- #ifndef _WCHAR_T_DEFINED_ +- #define _WCHAR_T_DEFINED_ +- #endif +- #endif +- #include <php.h> +- #ifndef WIN32 +- #ifdef cpluspluswasdefined +- #define __cplusplus +- #endif +- #endif +-} ++#include <php.h> + + #include <config.h> + |