Module: wine Branch: master Commit: 1279cf3597b364d8df43a4b16f9ab315c9642d71 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1279cf3597b364d8df43a4b16f...
Author: Rob Shearman rob@codeweavers.com Date: Wed Feb 13 13:18:37 2008 +0000
libport: Use configure guards for include files that may not be present.
---
libs/port/futimes.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/libs/port/futimes.c b/libs/port/futimes.c index 7892199..f842d67 100644 --- a/libs/port/futimes.c +++ b/libs/port/futimes.c @@ -24,8 +24,12 @@ #ifndef HAVE_FUTIMES
#include <sys/types.h> -#include <sys/time.h> -#include <utime.h> +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif +#ifdef HAVE_UTIME_H +# include <utime.h> +#endif #include <stdio.h> #include <errno.h>