On Tue, Mar 04, 2014 at 02:33:50PM -0800, Gurucharan Shetty wrote:
> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
> ---
>  lib/timeval.h |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/lib/timeval.h b/lib/timeval.h
> index c207f23..f745855 100644
> --- a/lib/timeval.h
> +++ b/lib/timeval.h
> @@ -40,6 +40,13 @@ BUILD_ASSERT_DECL(TYPE_IS_SIGNED(time_t));
>  #define TIME_MAX TYPE_MAXIMUM(time_t)
>  #define TIME_MIN TYPE_MINIMUM(time_t)
>  
> +#ifdef _WIN32
> +
> +#define localtime_r(timep, result) localtime_s(result, timep)
> +#define gmtime_r(timep, result) gmtime_s(result, timep)
> +
> +#endif /* _WIN32 */

I think it might be slightly nicer without the blank lines.

Acked-by: Ben Pfaff <b...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to