aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2005-07-31 05:38:46 +0800
committerclement <clement@FreeBSD.org>2005-07-31 05:38:46 +0800
commit5cc101872798faaaddf1c43559563e1843b6089f (patch)
tree2f853f7f3ddc34202ba94336c3a329eb37fc2d25
parentcf705b118c06f1e9f9cb652bc6ed7d603f943ce6 (diff)
downloadfreebsd-ports-gnome-5cc101872798faaaddf1c43559563e1843b6089f.tar.gz
freebsd-ports-gnome-5cc101872798faaaddf1c43559563e1843b6089f.tar.zst
freebsd-ports-gnome-5cc101872798faaaddf1c43559563e1843b6089f.zip
- Fix build on 4.x
PR: ports/83723 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> Also reported by: Krzysztof Stryjek <wtp+cactid@bsdguru.org>, PR:ports/84286
-rw-r--r--net-mgmt/cacti-spine/files/patch-php.c30
-rw-r--r--net/cactid/files/patch-php.c30
2 files changed, 60 insertions, 0 deletions
diff --git a/net-mgmt/cacti-spine/files/patch-php.c b/net-mgmt/cacti-spine/files/patch-php.c
new file mode 100644
index 000000000000..fdbae348c836
--- /dev/null
+++ b/net-mgmt/cacti-spine/files/patch-php.c
@@ -0,0 +1,30 @@
+--- php.c.orig Tue Jul 19 10:58:48 2005
++++ php.c Tue Jul 19 10:59:01 2005
+@@ -149,27 +149,9 @@
+ int cancel_state;
+ char *result_string;
+
+- /* variable to set/get environment limitations */
+- struct rlimit ResourceLimits;
+- struct rusage Usage;
+-
+ /* initialize the php process id */
+ set.php_sspid = 0;
+
+- if (getrlimit(RLIMIT_STACK,&ResourceLimits) == 0) {
+- if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+- printf("DEBUG: Current Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_cur);
+- printf("DEBUG: Maximum Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_max);
+- }
+- }
+-
+- if (getrlimit(RLIMIT_AS,&ResourceLimits) == 0) {
+- if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+- printf("DEBUG: Current Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_cur);
+- printf("DEBUG: Maximum Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_max);
+- }
+- }
+-
+ if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+ snprintf(logmessage, LOGSIZE-1, "DEBUG: PHP Script Server Routine Starting\n");
+ cacti_log(logmessage);
diff --git a/net/cactid/files/patch-php.c b/net/cactid/files/patch-php.c
new file mode 100644
index 000000000000..fdbae348c836
--- /dev/null
+++ b/net/cactid/files/patch-php.c
@@ -0,0 +1,30 @@
+--- php.c.orig Tue Jul 19 10:58:48 2005
++++ php.c Tue Jul 19 10:59:01 2005
+@@ -149,27 +149,9 @@
+ int cancel_state;
+ char *result_string;
+
+- /* variable to set/get environment limitations */
+- struct rlimit ResourceLimits;
+- struct rusage Usage;
+-
+ /* initialize the php process id */
+ set.php_sspid = 0;
+
+- if (getrlimit(RLIMIT_STACK,&ResourceLimits) == 0) {
+- if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+- printf("DEBUG: Current Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_cur);
+- printf("DEBUG: Maximum Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_max);
+- }
+- }
+-
+- if (getrlimit(RLIMIT_AS,&ResourceLimits) == 0) {
+- if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+- printf("DEBUG: Current Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_cur);
+- printf("DEBUG: Maximum Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_max);
+- }
+- }
+-
+ if (set.verbose == POLLER_VERBOSITY_DEBUG) {
+ snprintf(logmessage, LOGSIZE-1, "DEBUG: PHP Script Server Routine Starting\n");
+ cacti_log(logmessage);