Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 13:30:24 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364765 - in head: sbin/newfs_msdos usr.sbin/makefs
Message-ID:  <202008251330.07PDUOZN055795@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arichardson
Date: Tue Aug 25 13:30:24 2020
New Revision: 364765
URL: https://svnweb.freebsd.org/changeset/base/364765

Log:
  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

Modified:
  head/sbin/newfs_msdos/Makefile
  head/usr.sbin/makefs/Makefile

Modified: head/sbin/newfs_msdos/Makefile
==============================================================================
--- head/sbin/newfs_msdos/Makefile	Tue Aug 25 13:30:19 2020	(r364764)
+++ head/sbin/newfs_msdos/Makefile	Tue Aug 25 13:30:24 2020	(r364765)
@@ -9,5 +9,6 @@ SRCS=	newfs_msdos.c mkfs_msdos.c
 .if ${MACHINE_CPUARCH} == "arm"
 WARNS?= 3
 .endif
+CSTD=	c11
 
 .include <bsd.prog.mk>

Modified: head/usr.sbin/makefs/Makefile
==============================================================================
--- head/usr.sbin/makefs/Makefile	Tue Aug 25 13:30:19 2020	(r364764)
+++ head/usr.sbin/makefs/Makefile	Tue Aug 25 13:30:24 2020	(r364765)
@@ -17,6 +17,7 @@ SRCS=	cd9660.c \
 MAN=	makefs.8
 
 WARNS?=	2
+CSTD=	c11
 
 .include "${SRCDIR}/cd9660/Makefile.inc"
 .include "${SRCDIR}/ffs/Makefile.inc"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008251330.07PDUOZN055795>