]> granicus.if.org Git - php/commitdiff
Only define crypt if it is present
authorSam Ruby <rubys@php.net>
Tue, 7 Mar 2000 12:28:06 +0000 (12:28 +0000)
committerSam Ruby <rubys@php.net>
Tue, 7 Mar 2000 12:28:06 +0000 (12:28 +0000)
ext/standard/basic_functions.c

index 368cc394b946dde51ca2e8f65f3885c937733288..249512f563fe505f665f10383a9e4b6c0c5dddde 100644 (file)
@@ -373,8 +373,10 @@ function_entry basic_functions[] = {
        /* functions from browscap.c */
        PHP_FE(get_browser,                     NULL)
 
+#if HAVE_CRYPT
        /* functions from crypt.c */
        PHP_FE(crypt,                           NULL)
+#endif
 
        /* functions from dir.c */
        PHP_FE(opendir,                         NULL)
@@ -604,7 +606,11 @@ PHP_MINIT_FUNCTION(basic)
        PHP_MINIT(fsock)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(pack)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(browscap)(INIT_FUNC_ARGS_PASSTHRU);
+
+#if HAVE_CRYPT
        PHP_MINIT(crypt)(INIT_FUNC_ARGS_PASSTHRU);
+#endif
+
        PHP_MINIT(dir)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(syslog)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(array)(INIT_FUNC_ARGS_PASSTHRU);