From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH] mlx: fix compilation with older Glibc Date: Tue, 14 Jun 2016 11:22:00 +0200 Message-ID: <1465896120-17173-1-git-send-email-adrien.mazarguil@6wind.com> References: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id A38D76C9A for ; Tue, 14 Jun 2016 11:22:10 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id r190so20514200wmr.0 for ; Tue, 14 Jun 2016 02:22:10 -0700 (PDT) In-Reply-To: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" A missing define in the previous patch causes additional compilation issues. Fixes: 3025206f5060 ("mlx: fix compilation with recent Glibc") Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 1 + drivers/net/mlx5/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index ca6e483..efed953 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -48,6 +48,7 @@ CFLAGS += -O3 CFLAGS += -std=gnu99 -Wall -Wextra CFLAGS += -g CFLAGS += -I. +CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += $(WERROR_FLAGS) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 283d8eb..66687e8 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -60,6 +60,7 @@ CFLAGS += -O3 CFLAGS += -std=gnu99 -Wall -Wextra CFLAGS += -g CFLAGS += -I. +CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += $(WERROR_FLAGS) -- 2.1.4