From 17f6b01ef5ff545f58db11d98d020e8f3c977dd7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 5 Feb 2020 09:20:37 +0000 Subject: [PATCH] Fix cross-platform building --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3d9bb3b..c49deae 100644 --- a/main.c +++ b/main.c @@ -9,7 +9,7 @@ #include "msd/start.h" /* Assume BSD without native fmemopen() if doesn't seem to be glibc */ -#if defined(__APPLE__) || !defined(_GNU_SOURCE) || !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L +#if defined(__APPLE__) || (!defined(_GNU_SOURCE) && (!defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L)) #include "fmemopen.c" // BSD fmemopen() compat in terms of funopen() #endif -- libgit2 0.21.4