Index: lib/libopenbsd/Makefile =================================================================== --- lib/libopenbsd/Makefile +++ lib/libopenbsd/Makefile @@ -8,6 +8,12 @@ ohash.c INTERNALLIB= +.if defined(BOOTSTRAPPING) && ${.MAKE.OS} != "FreeBSD" +# getdtablecount.c won't compile during bootstrap for Linux, but it seems like +# it is not used by any of the cross tools so just skipping it works fine +SRCS:=${SRCS:Ngetdtablecount.c} +.endif + CFLAGS+= -I${.CURDIR} WARNS= 3