summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-20 20:37:30 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-20 20:38:32 +0200
commit561937f2f4bbd38493408a99593c1bccbe36eb48 (patch)
tree03e31619801d6959bcdae92433e824227947da5b
parent2b1de3d3369e7491ef6cc05533ce7ca91bb6aa7e (diff)
downloadrockbox-561937f2f4bbd38493408a99593c1bccbe36eb48.tar.gz
rockbox-561937f2f4bbd38493408a99593c1bccbe36eb48.tar.bz2
rockbox-561937f2f4bbd38493408a99593c1bccbe36eb48.zip
bspatch: Fix compiling on macOS.
u_char is a nonstandard type. On macOS this requires to explicitly include sys/types.h. Change-Id: I929ceafc12c7cbdcc96e85cdd05cce27d8aa6795
-rw-r--r--rbutil/bspatch/bspatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rbutil/bspatch/bspatch.c b/rbutil/bspatch/bspatch.c
index aab4c1dc6f..d1d7a5aa7a 100644
--- a/rbutil/bspatch/bspatch.c
+++ b/rbutil/bspatch/bspatch.c
@@ -28,6 +28,7 @@
#include <io.h>
#else
#include <stdarg.h>
+#include <sys/types.h>
#endif
#include "../bzip2/bzlib.h"
#include <stdlib.h>