Ticket #11136: patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff

File patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff, 626 bytes (added by Craig Treleaven <ctreleaven@…>, 8 years ago)
  • mythtv/libs/libmythtv/NuppelVideoRecorder.cpp

     
    3333#include "vbitext/cc.h"
    3434#include "vbitext/vbi.h"
    3535
    36 #if HAVE_BIGENDIAN
    37 extern "C" {
    38 #include "byteswap.h"
    39 }
     36#if HAVE_BYTESWAP_H
     37#include <byteswap.h>
     38#elif HAVE_SYS_ENDIAN_H
     39#include <sys/endian.h>
     40#elif CONFIG_DARWIN
     41#include <libkern/OSByteOrder.h>
     42#define bswap_16 OSSwapInt16
     43#define bswap_32 OSSwapInt32
     44#define bswap_64 OSSwapInt64
     45#elif HAVE_BIGENDIAN
     46#error No bswap functions defined
    4047#endif
    4148
    4249extern "C" {