diff --git a/config b/config index 888137b..67be190 100644 --- a/config +++ b/config @@ -5,6 +5,10 @@ if uname -o | grep -q FreeBSD; then ngx_feature_libs="$ngx_feature_libs -lgssapi" fi +if uname -a | grep -q NetBSD; then + ngx_feature_libs="-lgssapi -lkrb5 -lcom_err" +fi + if test -n "$ngx_module_link"; then ngx_module_type=HTTP ngx_module_name=ngx_http_auth_spnego_module diff --git a/ngx_http_auth_spnego_module.c b/ngx_http_auth_spnego_module.c index c65061d..97c0b44 100644 --- a/ngx_http_auth_spnego_module.c +++ b/ngx_http_auth_spnego_module.c @@ -35,7 +35,6 @@ #include #include #include -#include #define discard_const(ptr) ((void *)((uintptr_t)(ptr)))