diff --git a/tools/compat/nl_types.h b/tools/compat/nl_types.h index 1c114eb8a..9bb482da4 100644 --- a/tools/compat/nl_types.h +++ b/tools/compat/nl_types.h @@ -1,5 +1,15 @@ /* $NetBSD: nl_types.h,v 1.1 2002/01/29 10:20:32 tv Exp $ */ #ifdef _NLS_PRIVATE + +/* #if defined(__minix) */ +/* defines __format_arg, but on some other platforms it doesn't. + * includes because it needs __format_arg. As it might + * not be defined, we do it here as a work around. */ +#ifndef __format_arg +#define __format_arg(fmtarg) __attribute__((__format_arg__ (fmtarg))) +#endif +/* #endif defined(__minix) */ + #include "../../include/nl_types.h" #endif diff --git a/tools/llvm-tblgen/Makefile b/tools/llvm-tblgen/Makefile index 7690b24d0..b5f846819 100644 --- a/tools/llvm-tblgen/Makefile +++ b/tools/llvm-tblgen/Makefile @@ -3,5 +3,7 @@ HOSTPROGNAME= ${_TOOL_PREFIX}llvm-tblgen HOSTPROG_CXX= ${_TOOL_PREFIX}llvm-tblgen HOST_SRCDIR= external/bsd/llvm/bin/tblgen +# MINIX, for OSX Crosscompilation support +CPPFLAGS+= -D_NLS_PRIVATE=1 .include "${.CURDIR}/../Makefile.host"