Go to file
Thomas Veerman 10b559663e buildsystem: fix build errors for x86 on OSX
Define _NLS_PRIVATE in tools/llvm-tblgen/Makefile so that
<tools/compat/nl_types.h> will pull in <include/nl_types.h>. This is
necessary as Clang's c++/v1/locale implementation contains references
to catopen and other catalog symbols that aren't defined anywhere.
Moreover, the compiler will complain about NL_CAT_LOCALE not being
declared. The compat nl_types.h fixes these discrepancies.

However, <nl_types.h> uses __format_arg to add function attributes to
declarations. On NetBSD __format_arg(fmtarg) is defined by
<sys/cdefs.h> to be __attribute__((__format_arg__ (fmtarg))) for
briefness, but other platforms don't do that. Consequently, the build
will fail on catopen and friends function declarations because the
compiler doesn't know how to handle __format_arg(fmtarg). A fixup to
<tools/compat/nl_types.h> takes care of this, but it won't win any
beauty contest.

Change-Id: Ic4426eca8385aeef858e60304d6e8c06cd497d95
Signed-off-by: Thomas Veerman <tveerman@gmail.com>
2014-11-04 11:00:29 +01:00
bin Importing bin/sh 2014-08-29 12:56:04 -04:00
common Fix -DNDEBUG support 2014-08-22 19:12:17 +02:00
distrib Import tmux 2014-10-03 10:01:08 +00:00
docs Clearing history in docs/UPDATING 2014-08-01 14:58:40 +02:00
etc Import tmux 2014-10-03 10:01:08 +00:00
external Fix build error on OSX 2014-10-10 12:56:50 +02:00
games Import NetBSD games/fish command. 2014-09-25 02:03:28 +02:00
gnu Update download urls in fetch.sh 2014-08-07 14:27:32 +02:00
include New sources layout 2014-07-31 16:00:30 +02:00
lib libc: enable setproctitle(3) 2014-10-03 10:01:03 +00:00
libexec LLVM Minix changes 2014-07-28 17:05:59 +02:00
minix VM: fix returning VFS error code for mmap 2014-11-03 11:19:08 +00:00
releasetools Fix OS X crossbuilds for arm 2014-10-10 12:56:41 +02:00
sbin INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
share Import NetBSD legal/COPYRIGHT. 2014-09-28 16:28:05 +02:00
sys sys/ioccom.h: remove _MINIX_IOCTL_IORW 2014-09-29 16:16:17 +00:00
tests LLVM Minix changes 2014-07-28 17:05:59 +02:00
tools buildsystem: fix build errors for x86 on OSX 2014-11-04 11:00:29 +01:00
usr.bin Replace NetBSD grep with OpenBSD grep 2014-09-30 18:09:56 +00:00
usr.sbin netbsd ping & traceroute 2014-08-21 08:07:39 -04:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00