--- configure.orig	2021-11-20 13:07:41 UTC
+++ configure
@@ -9684,6 +9684,13 @@ then :
 
 fi
 
+  ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
+if test "x$ac_cv_func_closefrom" = xyes
+then :
+  printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
+
+fi
+
 
   # replace some functions if they are not on the system
   ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
