source: scripts/patches/net-tools-1.60-kernel-headers-1.patch@ 8d86489

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8d86489 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
  • 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  
    2222#include <sys/socket.h>
    2323#include <sys/ioctl.h>
    2424#include <linux/x25.h>
     25#include <linux/version.h>
    2526#include <ctype.h>
    2627#include <errno.h>
    2728#include <netdb.h>
     
    7778  rt.sigdigits=sigdigits;
    7879
    7980  /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */
     81#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
    8082  memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address));
     83#else
     84  memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address));
     85#endif
    8186
    8287  while (*args) {
    8388        if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {
Note: See TracBrowser for help on using the repository browser.