Module Name: src
Committed By: rillig
Date: Sun Jul 4 16:18:50 UTC 2021
Modified Files:
src/lib/libc/include: namespace.h
Log Message:
libc: remove special handling for lint
In namespace.h 1.102 from 2005-07-16, the #ifndef was added to fix the
broken lint2 pass. Somewhere between 2005 and now, lint has been
changed so that it does not need this workaround anymore.
After usr.bin/xlint/lint1/tree.c 1.303 from 2021-06-30, the #ifndef in
namespace.h caused the only warning about an implicit function
declaration in the whole NetBSD tree, in lib/libc/gen/sysconf.c:149,
where _getpagesize was not defined, but only getpagesize.
To generate a diff of this commit:
cvs rdiff -u -r1.200 -r1.201 src/lib/libc/include/namespace.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/include/namespace.h
diff -u src/lib/libc/include/namespace.h:1.200 src/lib/libc/include/namespace.h:1.201
--- src/lib/libc/include/namespace.h:1.200 Tue Sep 22 21:38:50 2020
+++ src/lib/libc/include/namespace.h Sun Jul 4 16:18:50 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.200 2020/09/22 21:38:50 nia Exp $ */
+/* $NetBSD: namespace.h,v 1.201 2021/07/04 16:18:50 rillig Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -32,7 +32,6 @@
#include <sys/cdefs.h>
#include <ssp/ssp.h>
-#ifndef __lint__
#define aio_suspend _aio_suspend
#define brk _brk
#define catclose _catclose
@@ -961,6 +960,5 @@
#define __learn_tree ___learn_tree
#endif /* __weak_alias */
-#endif /* !__lint__ */
#endif /* _NAMESPACE_H_ */