no-stddef-in-kernel-20021009
authorJim Rees <rees@umich.edu>
Wed, 9 Oct 2002 16:57:18 +0000 (16:57 +0000)
committerJim Rees <rees@umich.edu>
Wed, 9 Oct 2002 16:57:18 +0000 (16:57 +0000)
Don't include stddef.h in the kernel.
Untested except on OpenBSD, but I warned the mailing list.
Let me know if this breaks your favorite sysname.

src/util/afs_atomlist.h
src/util/afs_lhash.h

index 0a3e13a..a1b9083 100644 (file)
@@ -28,7 +28,9 @@
 #ifndef ATOMLIST_H
 #define ATOMLIST_H
 
+#ifndef KERNEL
 #include <stddef.h>
+#endif
 
 typedef struct afs_atomlist afs_atomlist;
 
index b807f10..911c29a 100644 (file)
@@ -28,7 +28,9 @@
 #ifndef AFS_LHASH_H
 #define AFS_LHASH_H
 
+#ifndef KERNEL
 #include <stddef.h>
+#endif
 
 /*
  * The user is responsible for generating the key values corresponding