[PATCH] Compilation errors in netsyms.c

Arjan van de Ven (arjan@stack.nl)
Fri, 4 Dec 1998 20:28:47 +0100 (CET)


Kernel Compilation Project bugreport + fix
-------------------------------------------
Kernel : 2.1.131-ac2
Architecture : i386/gcc
Affected files : net/netsyms.c

Description of the problem
--------------------------
If ATALK is the only selected network-protocol, things will not compile
(netsyms.c aborts the compile because of incorrect include-files). Also,
arp_find, arp_rcv, arp_tbl, ip_rcv are for TCP/IP only!

Proposed solution
-----------------

diff -r -u linux/net/netsyms.c /usr/src/linux/net/netsyms.c
--- linux/net/netsyms.c Fri Dec 4 20:18:22 1998
+++ /usr/src/linux/net/netsyms.c Fri Dec 4 20:14:03 1998
@@ -16,6 +16,11 @@
#include <linux/ioport.h>
#include <net/neighbour.h>
#include <net/snmp.h>
+#include <net/sock.h>
+#include <net/dst.h>
+#include <net/checksum.h>
+#include <net/pkt_sched.h>
+#include <linux/etherdevice.h>

#ifdef CONFIG_BRIDGE
#include <net/br.h>
@@ -439,13 +444,15 @@
EXPORT_SYMBOL(dev_mc_add);
EXPORT_SYMBOL(dev_mc_delete);
EXPORT_SYMBOL(dev_mc_upload);
-EXPORT_SYMBOL(arp_find);
EXPORT_SYMBOL(n_tty_ioctl);
EXPORT_SYMBOL(tty_register_ldisc);
EXPORT_SYMBOL(kill_fasync);
+#ifdef CONFIG_INET
EXPORT_SYMBOL(ip_rcv);
EXPORT_SYMBOL(arp_rcv);
EXPORT_SYMBOL(arp_tbl);
+EXPORT_SYMBOL(arp_find);
+#endif

EXPORT_SYMBOL(if_port_text);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/