From 36afe253e5def100585428abdab6c75b095a036f Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 20 Aug 2026 13:14:28 +0200 Subject: tools: Fix oftp on OS X Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/oftp/oftp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/tools/oftp/oftp.c b/src/tools/oftp/oftp.c index 2504393a..b66ef650 100644 --- a/src/tools/oftp/oftp.c +++ b/src/tools/oftp/oftp.c @@ -35,7 +35,12 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if defined(__APPLE__) +/* macOS hides O_NOFOLLOW behind the BSD feature set. */ +#define _DARWIN_C_SOURCE +#else #define _POSIX_C_SOURCE 200809L +#endif #include #include -- cgit v1.2.3