summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-26 18:14:58 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-26 18:14:58 +0100
commitccc6614c6c589d7a3c03edf666608ec4a475a3b5 (patch)
tree81d3d73062eaa125f34a15e623b7d6e8685d9a64
parent2d795d05f1180110dd45018a686dffed830f8812 (diff)
php-pecl-krb5: add the patch
-rw-r--r--krb5-build.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/krb5-build.patch b/krb5-build.patch
new file mode 100644
index 0000000..fe4d5da
--- /dev/null
+++ b/krb5-build.patch
@@ -0,0 +1,25 @@
+Index: php_krb5_kadm.h
+===================================================================
+--- php_krb5_kadm.h (révision 333125)
++++ php_krb5_kadm.h (copie de travail)
+@@ -25,15 +25,13 @@
+
+ #include "config.h"
+
+-#ifdef SUCCESS
+-#define OLD_SUCC SUCCESS
+-#endif
++/* will be used in gssrpc/rpc_msg.h enum accept_stat */
++#undef SUCCESS
+ #define SUCCESS KRB5_SUCCESS
+ #include <kadm5/admin.h>
+-#undef SUCCESS
+-#ifdef OLD_SUCC
+-#define SUCCESS OLD_SUCC
+-#endif
++#undef SUCCESS
++/* default value in PHP and Kerberos */
++#define SUCCESS 0
+
+ /* KADM5 Object */
+ zend_class_entry *krb5_ce_kadm5;