1
0
Fork 0

Fix compilation on mingw systems.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3908
This commit is contained in:
Peter Veenstra 2015-03-28 18:54:09 +00:00
parent e4b97eb62e
commit 08db52896d

View file

@ -32,7 +32,8 @@
#include "setup.h"
#include "serialport.h"
#include <time.h>
#ifdef DB_HAVE_CLOCK_GETTIME
#if defined(DB_HAVE_CLOCK_GETTIME) && ! defined(WIN32)
//time.h is already included
#else
#include <sys/timeb.h>
@ -493,7 +494,7 @@ static Bitu INT11_Handler(void) {
static void BIOS_HostTimeSync() {
Bit32u milli = 0;
#ifdef DB_HAVE_CLOCK_GETTIME
#if defined(DB_HAVE_CLOCK_GETTIME) && ! defined(WIN32)
struct timespec tp;
clock_gettime(CLOCK_REALTIME,&tp);