]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Don't create sys/mount.h shim except on DragonFly.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 11 Feb 2026 16:38:58 +0000 (11:38 -0500)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 11 Feb 2026 16:43:18 +0000 (11:43 -0500)
Fixes build on Mac OS X.

configure.ac

index b6c551dae768ffc624aa752e8f4afbc9ea8c3d51..852babbc7e4963bb1a316f96c2433b6bda7641b8 100644 (file)
@@ -578,10 +578,11 @@ case "$host" in
 *-*-dragonfly*)
        COMPATINCLUDES="$COMPATINCLUDESDIR"
        mkdir -p "$COMPATINCLUDES/sys"
-       echo '#include "/usr/include/sys/queue.h"'
-       echo '#include "/usr/include/sys/mount.h"'
+       (echo '#include "/usr/include/sys/queue.h"'
+        echo '#include "/usr/include/sys/mount.h"') \
+           >"$COMPATINCLUDES/sys/mount.h"
        ;;
-esac > "$COMPATINCLUDES/sys/mount.h"
+esac
 
 AC_CHECK_DECLS([le32toh, le64toh, htole64], [], [], [
 #ifdef HAVE_SYS_TYPES_H