logo

utils-std

Collection of commonly available Unix tools
commit: 13801fbda0a60ba3e8fe67675a591857d651f7a2
parent b73bb246889cafd62e6e4799de5cad908d767004
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 28 Apr 2024 01:28:21 +0200

cmd/ln: NetBSD broken header guards again…

Diffstat:

Mcmd/ln.c5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/cmd/ln.c b/cmd/ln.c @@ -6,6 +6,11 @@ #include "../lib/bitmasks.h" +// NetBSD (9.3 and 10) hides symlink behind _XOPEN_SOURCE / _NETBSD_SOURCE +#ifdef __NetBSD__ +#define _XOPEN_SOURCE 700 +#endif + #include <assert.h> #include <errno.h> #include <fcntl.h> // linkat, AT_SYMLINK_FOLLOW