Ticket #9653: ffmpeg.diff

File ffmpeg.diff, 591 bytes (added by Lawrence Rust <lvr@…>, 9 years ago)
  • mythtv/external/FFmpeg/ffmpeg.c

    # Needed to cross-compile linux > macosx
    # X_XOPEN_SOURCE causes sys/resource.h to make struct rusage opaque
    # But HAVE_STRUCT_RUSAGE_RU_MAXRSS is detected without X_XOPEN_SOURCE defined
    # Compromise with _BSD_SOURCE which allows usleep and struct rusage.ru_maxrss
    diff --git a/mythtv/external/FFmpeg/ffmpeg.c b/mythtv/external/FFmpeg/ffmpeg.c
    index 9e2e4cb..0d18098 100644
     
    2020 */
    2121
    2222/* needed for usleep() */
    23 #define _XOPEN_SOURCE 600
     23#define _BSD_SOURCE 1
    2424
    2525#include "config.h"
    2626#include <ctype.h>