source:
scripts/patches/net-tools-1.60-kernel-headers-1.patch@
8dc088d
Last change on this file since 8dc088d was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 962 bytes |
-
net-tools-1.60
Submitted By: Jim Gifford (jim at linuxfromscratch dot org) Date: 2004-01-30 Initial Package Version: 2.6 Origin: Gentoo Description: Fixes Compile Issues with the 2.6 Kernel diff -Naur net-tools-1.60.orig/lib/x25_sr.c net-tools-1.60/lib/x25_sr.c
old new 22 22 #include <sys/socket.h> 23 23 #include <sys/ioctl.h> 24 24 #include <linux/x25.h> 25 #include <linux/version.h> 25 26 #include <ctype.h> 26 27 #include <errno.h> 27 28 #include <netdb.h> … … 77 78 rt.sigdigits=sigdigits; 78 79 79 80 /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */ 81 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 80 82 memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address)); 83 #else 84 memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address)); 85 #endif 81 86 82 87 while (*args) { 83 88 if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {
Note:
See TracBrowser
for help on using the repository browser.