eal: fix alarm clock type for glibc < 2.12
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 19 Nov 2015 11:23:42 +0000 (11:23 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Nov 2015 16:38:24 +0000 (17:38 +0100)
commitcba0d5f10178901b57ac189623ec13851fd6844e
treece23120ecdbc1f318fc29ccaaaa573e4ecc0893e
parentd992985ff395144c242caa9cf95e3e5b8cf65f41
eal: fix alarm clock type for glibc < 2.12

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.

Fixes: d08d304508a8 ("eal/linux: make alarm not affected by system time jump")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/eal/eal_alarm.c