lkml.org 
[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.038 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site