From 78f1bdeea0b0613ed8d3cf539aca0951a9458a83 Mon Sep 17 00:00:00 2001 From: Roger Leigh <rleigh@apache.org> Date: Wed, 14 Jun 2017 21:27:20 +0000 Subject: [PATCH] xercesc: PlatformUtils: Include sys/timeb.h conditionally Remove deprecation warning by including sys/timeb.h only if it is going to be used. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@1798766 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/PlatformUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xercesc/util/PlatformUtils.cpp b/src/xercesc/util/PlatformUtils.cpp index ff1ff85bb..fc73582d6 100644 --- a/src/xercesc/util/PlatformUtils.cpp +++ b/src/xercesc/util/PlatformUtils.cpp @@ -34,7 +34,7 @@ #if HAVE_SYS_TIME_H # include <sys/time.h> #endif -#if HAVE_SYS_TIMEB_H +#if !HAVE_GETTIMEOFDAY && HAVE_SYS_TIMEB_H # include <sys/timeb.h> #endif #if HAVE_CPUID_H && !XERCES_HAVE_INTRIN_H -- GitLab