Skip to content

Commit

Permalink
Fix cross-platform building
Browse files Browse the repository at this point in the history
Commit 45c7237 ("Fixup for recent firmware inclusion changes")
breaks builds on non-Apple platforms. Fix it for platforms that
already have fmemopen - others may still need attention.

See: raspberrypi#47

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Feb 5, 2020
1 parent 45c7237 commit 17f6b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -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

Expand Down

0 comments on commit 17f6b01

Please sign in to comment.