lkml.org 
[lkml]   [2004]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.049 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site