]> git.kaiwu.me - nginx.git/commitdiff
autoconfigure crypt_r(): uclibc has no crypt_r()
authorIgor Sysoev <igor@sysoev.ru>
Thu, 2 Apr 2009 13:46:39 +0000 (13:46 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 2 Apr 2009 13:46:39 +0000 (13:46 +0000)
auto/os/linux
src/os/unix/ngx_linux_config.h

index 43ff3c9e2e25252ddb6bbfe16532e68fdf5f1ac1..c19f3f49d48a19891cb1305584e1fca38585100e 100644 (file)
@@ -124,6 +124,19 @@ ngx_feature_test="long mask = 0;
 . auto/feature
 
 
+# crypt_r()
+
+ngx_feature="crypt_r()"
+ngx_feature_name="NGX_HAVE_GNU_CRYPT_R"
+ngx_feature_run=no
+ngx_feature_incs="#include <crypt.h>"
+ngx_feature_path=
+ngx_feature_libs=-lcrypt
+ngx_feature_test="struct crypt_data  cd;
+                  crypt_r(NULL, NULL, &cd);"
+. auto/feature
+
+
 ngx_include="sys/vfs.h";     . auto/include
 
 
index abeda08af87e806eb6517c4c5f17d435c876e21c..fb978c46eb1f34939de2ecdb517ce773e1d6de3c 100644 (file)
@@ -95,11 +95,6 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
 #endif
 
 
-#ifndef NGX_HAVE_GNU_CRYPT_R
-#define NGX_HAVE_GNU_CRYPT_R         1
-#endif
-
-
 #ifndef NGX_HAVE_INHERITED_NONBLOCK
 #define NGX_HAVE_INHERITED_NONBLOCK  0
 #endif