This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
A small patch to avoid error compiling without DHCP client support
- From: Niklaus Giger <niklaus dot giger at member dot fsf dot org>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 7 Oct 2003 00:21:19 +0200
- Subject: A small patch to avoid error compiling without DHCP client support
- Reply-to: niklaus dot giger at member dot fsf dot org
--- packages/redboot/current/src/net/net_io.c 19 Sep 2003 17:11:34 -0000
1.35
+++ packages/redboot/current/src/net/net_io.c 6 Oct 2003 22:20:27 -0000
@@ -836,7 +836,9 @@
return;
}
mask = htonl((0xffffffff << (32-mask_len))&0xffffffff);
+#ifdef CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY
memcpy(&__local_ip_mask, &mask, 4);
+#endif
}
if (!_gethostbyname(ip_addr, (in_addr_t *)&host)) {
--
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
Tel. ++41 55 612 20 54 (privat)
Tel. ++41 55 618 64 68 (Geschäft)