From 4a2a1bb96c5e8e0067170de6bb8f5cef90a0387e Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 27 Oct 2013 04:11:17 +0000 Subject: [PATCH] Add definition guard for struct timespec --- d2x-rebirth/libmve/mveplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d2x-rebirth/libmve/mveplay.c b/d2x-rebirth/libmve/mveplay.c index 9d24058fc..09715eaa0 100644 --- a/d2x-rebirth/libmve/mveplay.c +++ b/d2x-rebirth/libmve/mveplay.c @@ -121,6 +121,7 @@ static int micro_frame_delay=0; static int timer_started=0; static struct timeval timer_expire = {0, 0}; +#ifndef _TIMESPEC_DEFINED #if !defined(HAVE_STRUCT_TIMESPEC) || !HAVE_STRUCT_TIMESPEC struct timespec { @@ -128,6 +129,7 @@ struct timespec long int tv_nsec; /* Nanoseconds. */ }; #endif +#endif #if defined(_WIN32) || defined(macintosh) int gettimeofday(struct timeval *tv, void *tz)