Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 19437 Details for
Bug 31420
net-tools 1.60 will not compile with 2.6 kernel headers
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix x25_address naming in net-tools 1.60
net-tools-1.60-x25_address-fix.patch (text/plain), 784 bytes, created by
Peter Gnodde
on 2003-10-18 16:55:59 UTC
(
hide
)
Description:
patch to fix x25_address naming in net-tools 1.60
Filename:
MIME Type:
Creator:
Peter Gnodde
Created:
2003-10-18 16:55:59 UTC
Size:
784 bytes
patch
obsolete
>diff -ruN net-tools-1.60.orig/lib/x25_sr.c net-tools-1.60/lib/x25_sr.c >--- net-tools-1.60.orig/lib/x25_sr.c 2000-05-20 15:38:10.000000000 +0200 >+++ net-tools-1.60/lib/x25_sr.c 2003-10-18 20:33:31.927574928 +0200 >@@ -22,6 +22,7 @@ > #include <sys/socket.h> > #include <sys/ioctl.h> > #include <linux/x25.h> >+#include <linux/version.h> > #include <ctype.h> > #include <errno.h> > #include <netdb.h> >@@ -77,7 +78,11 @@ > rt.sigdigits=sigdigits; > > /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */ >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) > memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address)); >+#else >+ memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address)); >+#endif > > while (*args) { > if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31420
:
19406
| 19437 |
19438