clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 2aa9e74 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move
|
-
Property mode
set to
100644
|
File size:
962 bytes
|
Rev | Line | |
---|
[617118d] | 1 | Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
|
---|
| 2 | Date: 2004-01-30
|
---|
| 3 | Initial Package Version: 2.6
|
---|
| 4 | Origin: Gentoo
|
---|
| 5 | Description: Fixes Compile Issues with the 2.6 Kernel
|
---|
| 6 |
|
---|
| 7 | diff -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.