[dpdk-dev] [PATCH v2] mlx: fix compilation with Glibc 2.20

2016-06-20 Thread Bruce Richardson
On Mon, Jun 20, 2016 at 03:31:46PM +0200, Adrien Mazarguil wrote: > Since _BSD_SOURCE was deprecated in favor of _DEFAULT_SOURCE in Glibc 2.19 > and entirely removed in 2.20, various BSD ioctl macros are not exposed > anymore when _XOPEN_SOURCE is defined, and linux/if.h now conflicts with >

[dpdk-dev] [PATCH v2] mlx: fix compilation with Glibc 2.20

2016-06-20 Thread Adrien Mazarguil
Since _BSD_SOURCE was deprecated in favor of _DEFAULT_SOURCE in Glibc 2.19 and entirely removed in 2.20, various BSD ioctl macros are not exposed anymore when _XOPEN_SOURCE is defined, and linux/if.h now conflicts with net/if.h. Add _DEFAULT_SOURCE and keep _BSD_SOURCE for compatibility with