diff options
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/namespace.h | 10 | ||||
-rw-r--r-- | lib/libc/include/un-namespace.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 470243b..59143f6 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -31,6 +31,16 @@ #define _NAMESPACE_H_ /* + * Adjust names so that headers declare "hidden" names. + */ + +/* + * ISO C (C90) section. Most names in libc aren't in ISO C, so they + * should be here. Most aren't here... + */ +#define warn _warn + +/* * Prototypes for syscalls/functions that need to be overridden * in libc_r/libpthread. */ diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index c7a5724..9290a99 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -137,4 +137,6 @@ int _kevent(int, const struct kevent *, int, struct kevent *, int _flock(int, int); #endif +#undef warn + #endif /* _UN_NAMESPACE_H_ */ |