Ticket #65582: patch-for-timersub-macro.diff

File patch-for-timersub-macro.diff, 523 bytes (added by ballapete (Peter "Pete" Dyballa), 2 years ago)

Patch for Mac OS X 10.4, Tiger, to make use of timersub() macro instead of a function by the same name

  • misc-utils/hardlink.c

    old new  
    2828
    2929#include <sys/types.h>          /* stat */
    3030#include <sys/stat.h>           /* stat */
     31#undef _POSIX_C_SOURCE          /* Mac OS X 10.4, Tiger, fix start */
    3132#include <sys/time.h>           /* getrlimit, getrusage */
     33#define _POSIX_C_SOURCE 200112L /* Mac OS X 10.4, Tiger, fix end */
    3234#include <sys/resource.h>       /* getrlimit, getrusage */
    3335#include <fcntl.h>              /* posix_fadvise */
    3436#include <ftw.h>                /* ftw */