From 1f83e3d73ffcb5ed0d028f132337d8d86b8d0ead Mon Sep 17 00:00:00 2001 From: luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> Date: Mon, 25 Jan 2021 22:25:35 -0500 Subject: Fix builds on xcode 12+ Enforce the use of -Werror-implicit-function-declaration for all platforms to catch this. See: https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes --- gcc/Makefile | 2 +- gcc/toplev.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/Makefile b/gcc/Makefile index c30991a..9756e90 100644 --- a/gcc/Makefile +++ b/gcc/Makefile @@ -24,7 +24,7 @@ VPATH = $(srcdir) CC = gcc -BASE_CFLAGS = -g -std=gnu11 +BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration INCLUDES = -I. -I$(srcdir) diff --git a/gcc/toplev.c b/gcc/toplev.c index 10d8508..e80ed20 100755 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -40,6 +40,7 @@ #include "except.h" #include "toplev.h" #include "expr.h" +#include "unistd.h" #if defined (DWARF2_DEBUGGING_INFO) #include "dwarf2out.h" -- cgit v1.2.3