Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Fix linux/atalk.h header

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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

David S. Miller and committed by
Linus Torvalds
9f3786dc 4c4c402d

+4 -4
+4 -4
include/linux/atalk.h
··· 1 1 #ifndef __LINUX_ATALK_H__ 2 2 #define __LINUX_ATALK_H__ 3 3 4 - #include <net/sock.h> 5 - 6 4 /* 7 5 * AppleTalk networking structures 8 6 * ··· 36 38 __u16 nr_firstnet; 37 39 __u16 nr_lastnet; 38 40 }; 41 + 42 + #ifdef __KERNEL__ 43 + 44 + #include <net/sock.h> 39 45 40 46 struct atalk_route { 41 47 struct net_device *dev; ··· 82 80 { 83 81 return (struct atalk_sock *)sk; 84 82 } 85 - 86 - #ifdef __KERNEL__ 87 83 88 84 #include <asm/byteorder.h> 89 85