aircrack-ng: Add -std=gnu89 to fix compile issues. 5763/head
authorRosen Penev <rosenp@gmail.com>
Thu, 15 Mar 2018 02:26:13 +0000 (19:26 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Mar 2018 02:26:13 +0000 (19:26 -0700)
The code assumes pre-C99 inlining. This causes issues with GCC7 which assumes C11. Add std=gnu89 to restore proper behavior.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/aircrack-ng/Makefile

index 5c8f0340c63ef887ab00e0cfcc977f9ee5b79638..7e472fb3c5839465f4baee9b1a76853f2ca4a1d3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aircrack-ng
 PKG_VERSION:=1.2-rc1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=LICENSE
 
@@ -51,6 +51,8 @@ define Package/airmon-ng/description
   Bash script designed to turn wireless cards into monitor mode.
 endef
 
+TARGET_CFLAGS += -std=gnu89
+
 MAKE_FLAGS += prefix=/usr \
        libnl=true \
        sqlite=false \