Messages in this thread Patch in this message | | | Date | Thu, 4 Mar 2004 14:39:59 +0100 | From | wdebruij@dds ... | Subject | [UPDATE] Re: [PATCH] 2.6.3 very small patch: libc compatibility for skbuff.h (userspace access to sk_buffs) |
| |
new version. Now uses sys/time.h in userspace to resolve timevals. Also, the patch mimetype is no longer (erroneously) reported as application/-octet-stream (since I just pasted it in below).
----begin---
--- linux-2.6.3-orig/include/linux/skbuff.h 2004-02-18 04:58:26.000000000 +0100 +++ linux-2.6.3/include/linux/skbuff.h 2004-03-04 11:10:49.716489408 +0100 @@ -14,19 +14,26 @@ #ifndef _LINUX_SKBUFF_H #define _LINUX_SKBUFF_H
+#ifdef __KERNEL__ #include <linux/config.h> #include <linux/kernel.h> #include <linux/compiler.h> #include <linux/time.h> #include <linux/cache.h> - #include <asm/atomic.h> +#else +#include <sys/time.h> +#endif + #include <asm/types.h> #include <linux/spinlock.h> + +#ifdef __KERNEL__ #include <linux/mm.h> #include <linux/highmem.h> #include <linux/poll.h> #include <linux/net.h> +#endif
#define HAVE_ALLOC_SKB /* For the drivers to know */ #define HAVE_ALIGNABLE_SKB /* Ditto 8) */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |