net/mlx: fix compilation with glibc 2.20
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Mon, 20 Jun 2016 13:31:46 +0000 (15:31 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:34 +0000 (17:21 +0200)
commitd06c608c013c36711e7a693b3fece68a93ae4369
treec3109483e7371fe3c51e423f93fad5ebc0966580
parente07f80c850f2c253e1ac0b39c4956af12f100d47
net/mlx: fix compilation with glibc 2.20

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 older
versions.

Suggested-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/mlx4/Makefile
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/Makefile
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_mac.c