summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/pcntl/pcntl.c4
-rw-r--r--ext/pcntl/php_pcntl.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index 8aa9290011..eb1a0f38f1 100755
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -56,8 +56,12 @@ function_entry pcntl_functions[] = {
PHP_FE(pcntl_wstopsig, NULL)
PHP_FE(pcntl_exec, NULL)
PHP_FE(pcntl_alarm, NULL)
+#ifdef HAVE_GETPRIORITY
PHP_FE(pcntl_getpriority, NULL)
+#endif
+#ifdef HAVE_SETPRIORITY
PHP_FE(pcntl_setpriority, NULL)
+#endif
{NULL, NULL, NULL}
};
diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h
index b9ac364f85..590d5779bd 100644
--- a/ext/pcntl/php_pcntl.h
+++ b/ext/pcntl/php_pcntl.h
@@ -51,8 +51,12 @@ PHP_FUNCTION(pcntl_wtermsig);
PHP_FUNCTION(pcntl_wstopsig);
PHP_FUNCTION(pcntl_signal);
PHP_FUNCTION(pcntl_exec);
+#ifdef HAVE_GETPRIORITY
PHP_FUNCTION(pcntl_getpriority);
+#endif
+#ifdef HAVE_SETPRIORITY
PHP_FUNCTION(pcntl_setpriority);
+#endif
ZEND_BEGIN_MODULE_GLOBALS(pcntl)
HashTable php_signal_table;