Ticket #4270: mingw.patch

File mingw.patch, 1.1 KB (added by andrei@…, 16 years ago)

one of the latest commits broke upnputil.h (suseconds_t is not a type in MinGW and/or Windows)

  • libs/libmyth/compat.h

     
    6969#define fsync(FD) 0
    7070//used in videodevice only - that code is not windows-compatible anyway
    7171#define minor(X) 0
     72typedef long long suseconds_t;
    7273#endif
    7374
    7475#if defined(__cplusplus) && defined(USING_MINGW)
  • libs/libmythupnp/upnputil.h

     
    1515#include <qstringlist.h>
    1616#include <qmap.h>
    1717
    18 // __suseconds_t doesn't exist on some older Unixes. e.g. Darwin/Mac OS X
     18// __suseconds_t doesn't exist on some older Unixes
     19// e.g. Darwin/Mac OS X, and Windows
    1920// let's hope they have suseconds_t in <sys/types.h>
    2021#include <sys/types.h>
    2122
     23// Myth headers
     24#include "compat.h"
     25
    2226/////////////////////////////////////////////////////////////////////////////
    2327//
    2428/////////////////////////////////////////////////////////////////////////////