numam-dpdk/lib
Ferruh Yigit 65d3ba3264 eal: fix build with glibc < 2.12
build error:
  CC rte_cycles.o
  cc1: warnings being treated as errors
  ...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c: In function
  ‘rdmsr’:
  ...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c:67:2: error:
  implicit declaration of function ‘pread’
  ...dpdk/lib/librte_eal/common/arch/x86/rte_cycles.c:67:2: error:
  nested extern declaration of ‘pread’

from pread man page:
pread(), pwrite():
   _XOPEN_SOURCE >= 500
   || /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L

For glibc < 2.12 _XOPEN_SOURCE >= 500 is required.

Adding _GNU_SOURCE define to the file which implies _XOPEN_SOURCE=700

Fixes: ad3516bb4a ("eal/x86: implement arch-specific TSC freq query")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2017-10-26 23:08:13 +02:00
..
librte_acl mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_bitratestats mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_cfgfile cfgfile: rework load function 2017-10-09 00:50:48 +02:00
librte_cmdline mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_compat fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cryptodev cryptodev: support security APIs 2017-10-26 03:09:51 +02:00
librte_distributor mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_eal eal: fix build with glibc < 2.12 2017-10-26 23:08:13 +02:00
librte_efd mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_ether ethdev: allow returning error on VLAN offload ops 2017-10-26 02:33:01 +02:00
librte_eventdev eventdev: add service id get to map file 2017-10-25 14:03:43 +02:00
librte_flow_classify flow_classify: introduce flow classify library 2017-10-24 22:26:54 +02:00
librte_gro mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_gso mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_hash mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_ip_frag mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_jobstats mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_kni mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_kvargs mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_latencystats mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_lpm lpm6: set errno on creation error 2017-10-24 21:35:53 +02:00
librte_mbuf mbuf: rename deprecated VLAN flags 2017-10-26 02:33:01 +02:00
librte_member mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_mempool mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_meter mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_metrics mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_net mbuf: rename deprecated VLAN flags 2017-10-26 02:33:01 +02:00
librte_pdump mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_pipeline mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_port mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_power mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_reorder mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_ring mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_sched mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_security security: introduce security API and framework 2017-10-26 03:10:51 +02:00
librte_table table: update library version 2017-10-24 13:38:31 +02:00
librte_timer mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
librte_vhost vhost: fix dequeue offload support 2017-10-24 21:31:23 +02:00
Makefile security: introduce security API and framework 2017-10-26 03:10:51 +02:00