From: "David S. Miller" <davem@davemloft.net>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org, akpm@osdl.org
Subject: [PATCH] Fix linux/atalk.h header
Date: Tue, 5 Apr 2005 13:55:04 -0700 [thread overview]
Message-ID: <20050405135504.6fe8e76e.davem@davemloft.net> (raw)
This recently got changed to include a lot of kernel internal
stuff in the non-__KERNEL__ area of the header, which isn't
so kosher and breaks libc builds.
The fix is pretty simple.
Signed-off-by: David S. Miller <davem@davemloft.net>
===== include/linux/atalk.h 1.12 vs edited =====
--- 1.12/include/linux/atalk.h 2005-03-07 09:33:17 -08:00
+++ edited/include/linux/atalk.h 2005-04-02 13:20:13 -08:00
@@ -1,8 +1,6 @@
#ifndef __LINUX_ATALK_H__
#define __LINUX_ATALK_H__
-#include <net/sock.h>
-
/*
* AppleTalk networking structures
*
@@ -39,6 +37,10 @@
__u16 nr_lastnet;
};
+#ifdef __KERNEL__
+
+#include <net/sock.h>
+
struct atalk_route {
struct net_device *dev;
struct atalk_addr target;
@@ -80,8 +82,6 @@
{
return (struct atalk_sock *)sk;
}
-
-#ifdef __KERNEL__
#include <asm/byteorder.h>
reply other threads:[~2005-04-05 21:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050405135504.6fe8e76e.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®