Ticket #2808: mc-freebsd6-mount-h.patch

File mc-freebsd6-mount-h.patch, 747 bytes (added by phil, 12 years ago)

Simple patch

  • work/mc-4.8.1.1/src/filemanager/mountlist.c

    old new  
    3838 
    3939#include <errno.h> 
    4040 
     41/* This header needs to be included before sys/mount.h on *BSD */ 
     42#ifdef HAVE_SYS_PARAM_H 
     43#include <sys/param.h> 
     44#endif 
     45 
    4146#if defined STAT_STATVFS || defined STAT_STATVFS64 /* POSIX 1003.1-2001 (and later) with XSI */ 
    4247#include <sys/statvfs.h> 
    4348#else 
     
    4651#include <fcntl.h> 
    4752#include <unistd.h> 
    4853#include <sys/stat.h> 
    49  
    50 /* This header needs to be included before sys/mount.h on *BSD */ 
    51 #ifdef HAVE_SYS_PARAM_H 
    52 #include <sys/param.h> 
    53 #endif 
    5454 
    5555#ifdef MOUNTED_GETFSSTAT        /* OSF_1 and Darwin1.3.x */ 
    5656#ifdef HAVE_SYS_UCRED_H