source: patches/inetutils-1.4.2-gcc4_fixes-3.patch@ 292da92

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 292da92 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.3 KB
  • inetutils-1.4.2

    Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
    Date: 2005-08-30
    Initial Package Version: 1.4.2
    Upstream Status: From upstream
    Origin: Greg Schafer <gschafer@zip.com.au> (http://www.diy-linux.org/downloads/patches/GCC4/inetutils-1.4.2-gcc4-fixes-1.patch)
    Description: Fix compilation issues with gcc4
    
    diff -Naur inetutils-1.4.2.orig/ftp/ftp_var.h inetutils-1.4.2/ftp/ftp_var.h
    old new  
    3636#include <sys/param.h>
    3737#include <setjmp.h>
    3838
    39 #include "extern.h"
    40 
    4139#ifndef FTP_EXTERN
    4240#define FTP_EXTERN extern
    4341#endif
     
    129127FTP_EXTERN int macnum;                  /* number of defined macros */
    130128FTP_EXTERN struct macel macros[16];
    131129FTP_EXTERN char macbuf[4096];
     130
     131#include "extern.h"
  • libinetutils/ttymsg.c

    diff -Naur inetutils-1.4.2.orig/libinetutils/ttymsg.c inetutils-1.4.2/libinetutils/ttymsg.c
    old new  
    132132            }
    133133          if (wret)
    134134            {
    135               (char *)iov->iov_base += wret;
     135              iov->iov_base = (char *)iov->iov_base + wret;
    136136              iov->iov_len -= wret;
    137137            }
    138138          continue;
Note: See TracBrowser for help on using the repository browser.