diff auto/os/solaris @ 4559:62d8db8c7157

Fixed more gcc46 warnings in configure tests. Steps to reproduce: ./configure --with-cc="gcc46" --with-cc-opt="-Wall -Werror -O2"
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Mar 2012 16:44:52 +0000
parents d620f497c50f
children e393c0bf53d3
line wrap: on
line diff
--- a/auto/os/solaris
+++ b/auto/os/solaris
@@ -35,7 +35,8 @@ ngx_feature_path=
 ngx_feature_libs="-lsendfile"
 ngx_feature_test="int fd = 1; sendfilevec_t vec[1];
                   size_t sent; ssize_t n;
-                  n = sendfilev(fd, vec, 1, &sent)"
+                  n = sendfilev(fd, vec, 1, &sent);
+                  if (n == -1) return 1"
 . auto/feature