]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 0a3e13aa3b8e879862b8b7a9701e779751000d8a..a1b908354bfb397392ff4e4422bef57b6058fd95 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 b807f1059a3df9297f33d3ed170b6dbf6f4276b1..911c29a8fd6893832e48bcd355a95e3f6a1d4328 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