Messages in this thread Patch in this message |  | | Subject | Patches to build without network support | From | Kohtala Marko <> | Date | 14 Nov 1996 23:48:00 +0200 |
| |
If I configure to have no IP support (CONFIG_INET=n), there are a few problems with compiling and linking.
These patches are to 2.1.9, but the last two should go to 2.0.x too.
diff 2.1-linux/net/core/sock.c aspoca-linux/net/core/sock.c --- 2.1-linux/net/core/sock.c Mon Nov 11 21:52:12 1996 +++ aspoca-linux/net/core/sock.c Thu Nov 14 22:43:14 1996 @@ -192,10 +192,12 @@ return(0); case SO_KEEPALIVE: +#ifdef CONFIG_INET if (sk->protocol == IPPROTO_TCP) { tcp_set_keepalive(sk, valbool); } +#endif sk->keepopen = valbool; return(0); diff -ru 2.1-linux/net/ethernet/eth.c aspoca-linux/net/ethernet/eth.c --- 2.1-linux/net/ethernet/eth.c Mon Nov 11 21:52:12 1996 +++ aspoca-linux/net/ethernet/eth.c Thu Nov 14 23:42:47 1996 @@ -266,6 +266,7 @@ printk(KERN_DEBUG "eth_header_cache_bind: %04x cache is not implemented\n", htype); return; } +#ifdef CONFIG_INET if (arp_bind_cache(hhp, dev, htype, daddr)) return; if ((hh=*hhp) != NULL) @@ -274,6 +275,7 @@ hh->hh_data[12] = htype>>8; hh->hh_data[13] = htype&0xFF; } +#endif } /* diff -ru 2.1-linux/net/netsyms.c aspoca-linux/net/netsyms.c --- 2.1-linux/net/netsyms.c Thu Nov 14 22:57:37 1996 +++ aspoca-linux/net/netsyms.c Thu Nov 14 23:31:13 1996 @@ -13,6 +13,7 @@ #include <linux/netdevice.h> #include <linux/trdevice.h> #include <linux/ioport.h> +#include <net/sock.h> #ifdef CONFIG_INET #include <linux/ip.h> -- --- Marko Kohtala - Marko.Kohtala@ntc.nokia.com, Marko.Kohtala@hut.fi
|  |