1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/raspberrypi-usbboot/patch-main.c.patch
2021-09-05 00:29:33 +00:00

15 lines
569 B
Diff

Just disable inclusion of fmemopen since Makefile does not offer CFLAGS macro.
--- a/main.c 2021-07-01 11:56:11.657844919 +0200
+++ b/main.c 2021-07-01 11:56:18.733756580 +0200
@@ -10,11 +10,6 @@
#include "msd/bootcode4.h"
#include "msd/start4.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))
-#include "fmemopen.c" // BSD fmemopen() compat in terms of funopen()
-#endif
-
int signed_boot = 0;
int verbose = 0;
int loop = 0;