diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile index 1caa5df5662b..6b1334d3e40b 100644 --- a/archivers/gtar/Makefile +++ b/archivers/gtar/Makefile @@ -56,4 +56,11 @@ regression-test: build RUN_DEPENDS+= xz:${PORTSDIR}/archivers/xz .endif +# supply result to skip a test that will abort configure if run as root +.if ${OSVERSION} < 800040 +CONFIGURE_ENV+= gl_cv_func_mknod_works=no +.else +CONFIGURE_ENV+= gl_cv_func_mknod_works=yes +.endif + .include