Ticket #2689: mc-4.8.1-macosx-fallocate.patch

File mc-4.8.1-macosx-fallocate.patch, 560 bytes (added by egmont, 13 years ago)

fix fallocate detection for mac

  • m4.include/mc-get-fs-info.m4

    diff -ur mc-4.8.1.orig/m4.include/mc-get-fs-info.m4 mc-4.8.1/m4.include/mc-get-fs-info.m4
    old new  
    55 
    66AC_DEFUN([gl_POSIX_FALLOCATE], [ 
    77    dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. 
    8     AC_TRY_COMPILE([ 
     8    AC_TRY_LINK([ 
    99        #define _XOPEN_SOURCE 600 
    1010        #include <stdlib.h> 
    1111        #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)