[dpdk-dev] [PATCH] eal: fix compile error for old glibc caused by CLOCK_MONOTONIC_RAW

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Nov 20 18:02:27 CET 2015


2015-11-19 11:23, Ferruh Yigit:
> Fixes: d08d304508a8 ("eal/linux: make alarm not affected by system time
> jump")
> 
> CLOCK_MONOTONIC_RAW added in glibc 2.12, using this define in older
> glibc versions cause compile error:
> 'error: identifier "CLOCK_MONOTONIC_RAW" is undefined'
> 
> This patch replaces "CLOCK_MONOTONIC_RAW" with "CLOCK_MONOTONIC" for
> older glibc versions, versions that support "CLOCK_MONOTONIC_RAW"
> will keep using this clock type.
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied, thanks


More information about the dev mailing list