]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Create replacement libgen.h if needed.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 08:08:51 +0000 (18:08 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 08:08:51 +0000 (18:08 +1000)
Remove #ifdef HAVE_LIBGEN_H wrapper.  ok djm@

configure.ac
misc.c
scp.c
sftp.c

index c75a90abe7e086a81f93472b756a583504cbcd36..98e472d8a255ec6e562d65042bac74344016a9a1 100644 (file)
@@ -531,6 +531,7 @@ AC_CHECK_HEADERS([ \
 compatincludes=no
 AC_CHECK_HEADERS([ \
     ifaddrs.h \
+    libgen.h \
     paths.h \
     poll.h \
     stdint.h \
diff --git a/misc.c b/misc.c
index a28ca0e75ec65f1585b6a16ff80a7d645c7bdf64..47247c15bcd35e2d4b312f86fc3c4e72c7fb08dc 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -30,9 +30,7 @@
 #include <sys/un.h>
 
 #include <limits.h>
-#ifdef HAVE_LIBGEN_H
-# include <libgen.h>
-#endif
+#include <libgen.h>
 #include <poll.h>
 #ifdef HAVE_NLIST_H
 #include <nlist.h>
diff --git a/scp.c b/scp.c
index 3d045bc6bcf0eba46cab32b36ec51bfa9e252ac5..e831a50f3bbde7f6f35d6004bb278395ee632c0a 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -92,9 +92,7 @@
 #else
 # include "openbsd-compat/glob.h"
 #endif
-#ifdef HAVE_LIBGEN_H
 #include <libgen.h>
-#endif
 #include <limits.h>
 #include <util.h>
 #include <locale.h>
diff --git a/sftp.c b/sftp.c
index 5d6d782f4c253fa78e2d824eacf64edc1d4f91c8..c27926b37899cb450f5d098e3c15563a0de86386 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -30,9 +30,7 @@
 #include <errno.h>
 
 #include <paths.h>
-#ifdef HAVE_LIBGEN_H
 #include <libgen.h>
-#endif
 #ifdef HAVE_LOCALE_H
 # include <locale.h>
 #endif