From 2585fc34200938fb3fa55a450ea37f68012aafa7 Mon Sep 17 00:00:00 2001 From: oharboe Date: Wed, 9 Apr 2008 05:55:23 +0000 Subject: Don Porges fixed c99 issues. git-svn-id: svn://svn.berlios.de/openocd/trunk@553 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/time_support.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/helper/time_support.h') diff --git a/src/helper/time_support.h b/src/helper/time_support.h index 05dc9119..311c88d3 100644 --- a/src/helper/time_support.h +++ b/src/helper/time_support.h @@ -20,8 +20,16 @@ #ifndef TIME_SUPPORT_H #define TIME_SUPPORT_H -#include -#include +#ifdef TIME_WITH_SYS_TIME +# include +# include +#else +# ifdef HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif extern int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y); extern int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y); -- cgit v1.2.3