]> git.armaanb.net Git - opendoas.git/blobdiff - configure
opendoas: Fallback for setresuid(2).
[opendoas.git] / configure
index bd1b94f57666b02e96c24fc6f9005a84ef5a03aa..679fe68b2419fa15640df3770fccd64c4976b322 100755 (executable)
--- a/configure
+++ b/configure
@@ -340,7 +340,9 @@ int main(void) {
        setresuid(0, 0, 0);
        return 0;
 }'
-check_func "setresuid" "$src" || die "system has no setresuid(2): not supported"
+check_func "setresuid" "$src" || {
+       printf 'OPENBSD  +=     bsd-setres_id.o\n' >>$CONFIG_MK
+}
 
 #
 # Check for closefrom().