diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-08-20 13:14:28 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-08-31 08:31:46 +0200 |
| commit | 36afe253e5def100585428abdab6c75b095a036f (patch) | |
| tree | cdc1c4ed963a918b080bade8168463c07b5877fd | |
| parent | f921e50952334d99b6c25ee8df09e7fb1523e92f (diff) | |
| download | ouroboros-36afe253e5def100585428abdab6c75b095a036f.tar.gz ouroboros-36afe253e5def100585428abdab6c75b095a036f.zip | |
tools: Fix oftp on OS X
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
| -rw-r--r-- | src/tools/oftp/oftp.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <ouroboros/crc64.h> #include <ouroboros/dev.h> |
