Messages in this thread Patch in this message | | | Date | Tue, 22 Jun 1999 15:32:38 -0300 (EST) | From | Marcelo Tosatti <> | Subject | Re: Compile error report pre-2.3.8-2 |
| |
This should fix.
--- net/ipv4/ip_masq.c.orig Tue Jun 22 15:28:53 1999 +++ net/ipv4/ip_masq.c Tue Jun 22 15:30:21 1999 @@ -795,14 +795,17 @@ { __u16 mport; +#ifdef __SMP__ spin_lock_irq(&masq_port_lock); +#endif /* * Try the next available port number */ mport = htons(masq_port++); if (masq_port==PORT_MASQ_END) masq_port = PORT_MASQ_BEGIN; - +#ifdef __SMP__ spin_unlock_irq(&masq_port_lock); +#endif return mport; } - Marcelo
On Tue, 22 Jun 1999, Steve Bergman wrote:
> > ip_masq.c: In function `get_next_mport': > ip_masq.c:798: `masq_port_lock' undeclared (first use in this function) > ip_masq.c:798: (Each undeclared identifier is reported only once > ip_masq.c:798: for each function it appears in.) > ip_masq.c: In function `ip_masq_init': > ip_masq.c:2450: warning: implicit declaration of function `ip_mfw_init' > make[3]: *** [ip_masq.o] Error 1 > make[2]: *** [first_rule] Error 2 > make[1]: *** [_subdir_ipv4] Error 2 > make: *** [_dir_net] Error 2 > > Rh 6.0, egcs-2.91.66, UP. All the ipmasq stuff enabled. > > -Steve
- 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/
| |