]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add fcntl.h to includes.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 7 Oct 2025 09:25:07 +0000 (20:25 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 7 Oct 2025 09:25:07 +0000 (20:25 +1100)
From FreeBSD via bz#3874: "This was previously included due to nested
includes in Heimdal's headers.  Without this, the build fails with an
error due to redefining AT_FDCWD."

includes.h

index 8f933568d3370d031d62a875341ae27f6ca014be..96cddbc26089abdf69d53417a7df816a18ae0502 100644 (file)
@@ -34,6 +34,9 @@
 #ifdef HAVE_ENDIAN_H
 # include <endian.h>
 #endif
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
 #ifdef HAVE_TTYENT_H
 # include <ttyent.h>
 #endif