The patch works for me. I was running into same problem when I was doing "make" with nginx-0.9.2 on SunOS 5.10. "‘NGX_SYS_NERR’ undeclared" occurred. But after patching auto/unix, make command finally works. Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,155668,156105#msg-156105