Skip to contentSkip to conversation

-Wundef fixes (hamachi)

PATCH New [email protected] 1 participant 1 message Sep 7, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 -Wundef fixes (hamachi)

All uses of ADDRLEN are comparisons with 64 (it's an address width). added define to 32 (again, we only care about comparisons with 64) if not defined.

----

drivers/net/hamachi.c +4 -0
diff -urN RC13-git7-ncr5380/drivers/net/hamachi.c RC13-git7-hamachi/drivers/net/hamachi.c
@@ -204,6 +204,10 @@
 
 #define RUN_AT(x) (jiffies + (x))
 
+#ifndef ADDRLEN
+#define ADDRLEN 32
+#endif
+
 /* Condensed bus+endian portability operations. */
 #if ADDRLEN == 64
 #define cpu_to_leXX(addr)	cpu_to_le64(addr)