net/virtio-user: fix build on Suse 11
authorJianfeng Tan <jianfeng.tan@intel.com>
Wed, 29 Jun 2016 03:23:03 +0000 (03:23 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 4 Jul 2016 02:08:41 +0000 (04:08 +0200)
commit17450351fff8cc63624c0ab4d46a8f5eec37c802
treeb63af59174487528d3c10bde55940991fa55947e
parent15f472c41e9adaaeecf8d897e3875b85808c1428
net/virtio-user: fix build on Suse 11

On some older systems, such as SUSE 11, the compiling error shows
as:
   .../dpdk/drivers/net/virtio/virtio_user/virtio_user_dev.c:67:22:
         error: ‘O_CLOEXEC’ undeclared (first use in this function)

The fix is to use EFD_CLOEXEC, which is defined in sys/eventfd.h,
instead of O_CLOEXEC which needs _GNU_SOURCE defined on some old
systems.

Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c