source: patches/net-tools-1.60-kernel-headers-1.patch@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 962 bytes
RevLine 
[617118d]1Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
2Date: 2004-01-30
3Initial Package Version: 2.6
4Origin: Gentoo
5Description: Fixes Compile Issues with the 2.6 Kernel
6
7diff -Naur net-tools-1.60.orig/lib/x25_sr.c net-tools-1.60/lib/x25_sr.c
8--- net-tools-1.60.orig/lib/x25_sr.c 2000-05-20 13:38:10.000000000 +0000
9+++ net-tools-1.60/lib/x25_sr.c 2004-01-30 19:46:39.000000000 +0000
10@@ -22,6 +22,7 @@
11 #include <sys/socket.h>
12 #include <sys/ioctl.h>
13 #include <linux/x25.h>
14+#include <linux/version.h>
15 #include <ctype.h>
16 #include <errno.h>
17 #include <netdb.h>
18@@ -77,7 +78,11 @@
19 rt.sigdigits=sigdigits;
20
21 /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */
22+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
23 memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address));
24+#else
25+ memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address));
26+#endif
27
28 while (*args) {
29 if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {
Note: See TracBrowser for help on using the repository browser.