Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -0,0 +1,48 @@
$NetBSD: patch-src_api_php_sql__relay.cpp,v 1.1 2014/11/17 19:00:39 joerg Exp $
Don't mess with system headers by pretending to be C or removing defines.
Just expect php.h to work.
--- src/api/php/sql_relay.cpp.orig 2014-09-02 01:51:20.000000000 +0000
+++ src/api/php/sql_relay.cpp
@@ -3,39 +3,7 @@
#include <sqlrelay/sqlrclient.h>
-#ifdef WIN32
- #undef uid_t
- #undef gid_t
- #undef ssize_t
- #undef socklen_t
- #undef pid_t
- #undef mode_t
- #define PHP_WIN32
- #define ZEND_WIN32
- #define ZEND_DEBUG 0
- #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_DEFINED_
- #define _WCHAR_T_DEFINED_
- #endif
- #endif
- #include <php.h>
- #ifndef WIN32
- #ifdef cpluspluswasdefined
- #define __cplusplus
- #endif
- #endif
-}
+#include <php.h>
#include <config.h>