From 6424881cc82a65a833fc6fb79730474caedf6222 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Tue, 25 Aug 2020 13:30:24 +0000 Subject: [PATCH] Fix makefs bootstrap on macOS after D25563 The macOS assert.h header does not define static_assert when compiling in C99 mode. To fix this compile with -std=c11. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D25928 --- sbin/newfs_msdos/Makefile | 1 + usr.sbin/makefs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/sbin/newfs_msdos/Makefile b/sbin/newfs_msdos/Makefile index 3a2c49fed0db..d12cf0245df2 100644 --- a/sbin/newfs_msdos/Makefile +++ b/sbin/newfs_msdos/Makefile @@ -9,5 +9,6 @@ SRCS= newfs_msdos.c mkfs_msdos.c .if ${MACHINE_CPUARCH} == "arm" WARNS?= 3 .endif +CSTD= c11 .include diff --git a/usr.sbin/makefs/Makefile b/usr.sbin/makefs/Makefile index e39a07f76965..cbe4f497d7d1 100644 --- a/usr.sbin/makefs/Makefile +++ b/usr.sbin/makefs/Makefile @@ -17,6 +17,7 @@ SRCS= cd9660.c \ MAN= makefs.8 WARNS?= 2 +CSTD= c11 .include "${SRCDIR}/cd9660/Makefile.inc" .include "${SRCDIR}/ffs/Makefile.inc"