rtl-ais: Fix compilation on i386
authorRosen Penev <rosenp@gmail.com>
Wed, 9 Jan 2019 23:59:29 +0000 (15:59 -0800)
committerRosen Penev <rosenp@gmail.com>
Sat, 3 Aug 2019 19:19:20 +0000 (12:19 -0700)
The code from 1996 is using pre-c99 inline semantics that cause compilation
failures on i386. Added std-gnu89 to fix this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 16f623b38765bb6218fd622d4d3ae92da4d9ae0e)

utils/rtl-ais/Makefile

index 83668f6afb3c6492d17fce34234c0d8006f64212..fbf07662ee8f3bdbbe4ec59d344eb66eec464947 100644 (file)
@@ -8,8 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtl-ais
 PKG_VERSION:=20151213
-
-PKG_RELEASE=$(PKG_SOURCE_VERSION)
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/dgiardini/rtl-ais.git
@@ -18,11 +17,10 @@ PKG_SOURCE_VERSION:=b805be0164475e58a73b57763a8cbbf8a2bd0ded
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 PKG_MIRROR_HASH:=0bf15869935e4496108ade4f7e9c1f7990b11ce53c9c1e0c9e81bc7f082b33b5
 
+PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
 PKG_LICENSE:=GPL-2.0+
 PKG_LICENSE_FILES:=COPYING
 
-PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/rtl-ais
@@ -42,6 +40,8 @@ define Package/rtl-ais/conffiles
 /etc/config/rtl_ais
 endef
 
+TARGET_CFLAGS += -std=gnu89
+
 define Package/rtl-ais/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtl_ais $(1)/usr/bin/