aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-15 16:12:51 +0000
committerrsc <devnull@localhost>2005-03-15 16:12:51 +0000
commitaaa502d3a330a84ac835fd902b01f2834e2fc40a (patch)
treec2f2e5b4666dbe9c3b6eeade0325434a371ca8bb /include/libc.h
parent1f8a80722f44d9c24c4a48d21a944947c9a34b96 (diff)
downloadplan9port-aaa502d3a330a84ac835fd902b01f2834e2fc40a.tar.gz
plan9port-aaa502d3a330a84ac835fd902b01f2834e2fc40a.tar.bz2
plan9port-aaa502d3a330a84ac835fd902b01f2834e2fc40a.zip
appease sun - nil is now just 0 instead of (void*)0
to fix function pointer problems.
Diffstat (limited to 'include/libc.h')
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index e495a535..ac8ffa9d 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -13,7 +13,9 @@ extern "C" {
* Begin usual libc.h
*/
+#ifndef nil
#define nil ((void*)0)
+#endif
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
#ifndef offsetof