diff options
author | eutarass | 2010-08-06 19:26:54 +0000 |
---|---|---|
committer | eutarass | 2010-08-06 19:26:54 +0000 |
commit | 60c4b9d3d92615269cef934b3600f124a004a310 (patch) | |
tree | b06d09c5077f87f56e17c87e12c134ab42fd0a31 | |
parent | 48c4b7844055f1343c5c2b67bd6d02140dddc80a (diff) | |
download | org.eclipse.tcf.agent-60c4b9d3d92615269cef934b3600f124a004a310.tar.gz org.eclipse.tcf.agent-60c4b9d3d92615269cef934b3600f124a004a310.tar.xz org.eclipse.tcf.agent-60c4b9d3d92615269cef934b3600f124a004a310.zip |
TCF Agent: fixed: compile time error: re-definition of struct timespec when building TCF plugin for Simics
-rw-r--r-- | framework/mdep.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/mdep.h b/framework/mdep.h index afe516d4..2cc91091 100644 --- a/framework/mdep.h +++ b/framework/mdep.h @@ -29,7 +29,9 @@ #if defined(WIN32) || defined(__CYGWIN__) /* MS Windows NT/XP */ -#define _WIN32_WINNT 0x0501 +#ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 +#endif #if defined(__CYGWIN__) # define _WIN32_IE 0x0501 @@ -105,10 +107,13 @@ extern int __stdcall getaddrinfo(const char *, const char *, #include <direct.h> #include <errno.h> +#ifndef HAVE_STRUCT_TIMESPEC struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; +#define HAVE_STRUCT_TIMESPEC +#endif #define SIGKILL 1 |