[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

linux-kernel-headers : linux/socket.h + linux/auto_fs.h



Hi

I'm on uncertain ground here so apologies if this is noise.

By way of explanation: this came about because my am-utils complains:
 nfs warning: mount version older than kernel
I'm running kernel.org 2.6.6 and unstable.

So anyway, onto more relevant things (I hope), I tried to update the kernel headers and recompile.
I updated to: linux-kernel-headers  2.5.999-test7-bk-17

The following include files wouldn't compile during a "debian/rules binary" configure for am-utils 6.0.9.

/usr/include/linux/nfs_mount.h
/usr/include/linux/auto_fs.h
/usr/include/linux/auto_fs4.h

I figured that the headers were broken since 3 tst.c programs, each consisting of a single #include failed to compile.

The following changes helped me (compile - I still have the nfs version complaint - <sigh>)

--- /usr/include/linux/socket.h~        2003-10-15 16:14:02.000000000 +0100
+++ /usr/include/linux/socket.h 2004-08-21 10:55:38.000000000 +0100
@@ -291,5 +291,7 @@
extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);

#endif
+#else /* not kernel and not glibc */
+#include <sys/socket.h>
#endif /* not kernel and not glibc */
#endif /* _LINUX_SOCKET_H */

--- /usr/include/linux/auto_fs.h~       2003-10-15 16:09:41.000000000 +0100
+++ /usr/include/linux/auto_fs.h        2004-08-21 11:01:07.000000000 +0100
@@ -16,9 +16,9 @@

#ifdef __KERNEL__
#include <linux/fs.h>
-#include <linux/limits.h>
#include <asm/types.h>
#endif /* __KERNEL__ */
+#include <linux/limits.h>

#include <linux/ioctl.h>

Is this the right way to fix this problem? Or should am-utils be fixed?

David



Reply to: