From beab35d11311140beb3825b6c447fa287b92ca60 Mon Sep 17 00:00:00 2001
From: Alex Nikitenko <alex.nikitenko@sirinsoftware.com>
Date: Tue, 20 Dec 2016 18:31:00 +0200
Subject: [PATCH] vsftpd: Fix vsftpd compilation error for x86

Signed-off-by: Alex Nikitenko <alex.nikitenko@sirinsoftware.com>
---
 net/vsftpd/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/vsftpd/Makefile b/net/vsftpd/Makefile
index da5069881..d85dc70e4 100644
--- a/net/vsftpd/Makefile
+++ b/net/vsftpd/Makefile
@@ -55,6 +55,8 @@ else
   NLSSTRING:=-lcrypt -lnsl
 endif
 
+TARGET_CFLAGS += -D_GNU_SOURCE -include fcntl.h
+
 ifeq ($(BUILD_VARIANT),notls)
  define Build/Compile
 	$(SED) 's/-lcrypt -lnsl/$(NLSSTRING)/' $(PKG_BUILD_DIR)/Makefile