svn commit: r364765 - in head: sbin/newfs_msdos usr.sbin/makefs

Alex Richardson arichardson at FreeBSD.org
Tue Aug 25 13:30:28 UTC 2020


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"


More information about the svn-src-all mailing list