aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorbar <bar@FreeBSD.org>2018-03-17 17:06:32 +0800
committerbar <bar@FreeBSD.org>2018-03-17 17:06:32 +0800
commit771fb7ecae431310aedcc4375723789ce3ce8263 (patch)
treea7567b0bf1d074c3dc12965720584c9ac5039392 /net-p2p
parente051b773eddeb203f9377cf638c0ca08f4544068 (diff)
downloadfreebsd-ports-graphics-771fb7ecae431310aedcc4375723789ce3ce8263.tar.gz
freebsd-ports-graphics-771fb7ecae431310aedcc4375723789ce3ce8263.tar.zst
freebsd-ports-graphics-771fb7ecae431310aedcc4375723789ce3ce8263.zip
Attempt to fix on HEAD.
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/amule/files/patch-src_webserver_src_php_amule_lib.cpp11
-rw-r--r--net-p2p/amule/files/patch-src_webserver_src_php_core_lib.cpp11
2 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/amule/files/patch-src_webserver_src_php_amule_lib.cpp b/net-p2p/amule/files/patch-src_webserver_src_php_amule_lib.cpp
new file mode 100644
index 00000000000..0308e5b4eea
--- /dev/null
+++ b/net-p2p/amule/files/patch-src_webserver_src_php_amule_lib.cpp
@@ -0,0 +1,11 @@
+--- src/webserver/src/php_amule_lib.cpp.orig 2016-09-16 09:55:07.000000000 +0200
++++ src/webserver/src/php_amule_lib.cpp 2018-03-17 09:50:11.347042000 +0100
+@@ -564,7 +564,7 @@
+ case 1: search_type = EC_SEARCH_GLOBAL; break;
+ case 2: search_type = EC_SEARCH_KAD; break;
+ default:
+- php_report_error(PHP_ERROR, "Invalid search type %"PRIu64, si->var->value.int_val);
++ php_report_error(PHP_ERROR, "Invalid search type %" PRIu64, si->var->value.int_val);
+ return;
+ }
+
diff --git a/net-p2p/amule/files/patch-src_webserver_src_php_core_lib.cpp b/net-p2p/amule/files/patch-src_webserver_src_php_core_lib.cpp
new file mode 100644
index 00000000000..cbf0b583221
--- /dev/null
+++ b/net-p2p/amule/files/patch-src_webserver_src_php_core_lib.cpp
@@ -0,0 +1,11 @@
+--- src/webserver/src/php_core_lib.cpp.orig 2016-09-16 09:55:07.000000000 +0200
++++ src/webserver/src/php_core_lib.cpp 2018-03-17 09:46:29.766922000 +0100
+@@ -71,7 +71,7 @@
+ if ( ref ) printf("&");
+ switch(node->type) {
+ case PHP_VAL_BOOL: printf("bool(%s)\n", node->int_val ? "true" : "false"); break;
+- case PHP_VAL_INT: printf("int(%"PRIu64")\n", node->int_val); break;
++ case PHP_VAL_INT: printf("int(%" PRIu64 ")\n", node->int_val); break;
+ case PHP_VAL_FLOAT: printf("float(%f)\n", node->float_val); break;
+ case PHP_VAL_STRING: printf("string(%d) \"%s\"\n", (int)strlen(node->str_val), node->str_val); break;
+ case PHP_VAL_OBJECT: printf("Object(%s)\n", node->obj_val.class_name); break;