Ticket #495: patch44_core.patch

File patch44_core.patch, 1019 bytes (added by Charlie Hull, 14 years ago)

Minor patches to core for MSVC build

  • common/realtime.h

     
    3636#else
    3737# include <sys/types.h>
    3838# include <sys/timeb.h>
     39extern void xapian_sleep_milliseconds(unsigned int millisecs);
    3940#endif
    4041
    4142namespace RealTime {
     
    9091        tv.tv_usec = long(std::fmod(delta, 1.0) * 1e6);
    9192    } while (select(0, NULL, NULL, NULL, &tv) < 0 && errno == EINTR);
    9293#else
    93     extern void xapian_sleep_milliseconds(unsigned int millisecs);
    9494    double delta = RealTime::now() - t;
    9595    if (delta <= 0.0)
    9696        return;
  • tests/harness/backendmanager_remotetcp.cc

     
    4444#ifdef __WIN32__
    4545# include "safefcntl.h"
    4646# include "safewindows.h"
     47# include <io.h>
    4748#endif
    4849
    4950#include "noreturn.h"