From: Hauke Mehrtens Date: Sun, 6 Nov 2022 15:42:33 +0000 (+0100) Subject: libowfat: Fix compile with glibc 2.36 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0c59c77c96ac33ba58fea17b75c958c56fe429bc;p=feed%2Fpackages.git libowfat: Fix compile with glibc 2.36 This fixes the following error message seen when compiling against glibc 2.36: from scan/scan_httpdate.c:3: include/sys/cdefs.h:338:65: error: macro "__has_attribute" requires an identifier 338 | #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__deprecated__) Signed-off-by: Hauke Mehrtens --- diff --git a/libs/libowfat/Makefile b/libs/libowfat/Makefile index e932625094..9f9fc742dd 100644 --- a/libs/libowfat/Makefile +++ b/libs/libowfat/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libowfat PKG_VERSION:=0.32 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://www.fefe.de/libowfat diff --git a/libs/libowfat/patches/012-remove-deprecated.patch b/libs/libowfat/patches/012-remove-deprecated.patch new file mode 100644 index 0000000000..49e3c824cc --- /dev/null +++ b/libs/libowfat/patches/012-remove-deprecated.patch @@ -0,0 +1,16 @@ +--- a/scan/scan_iso8601.c ++++ b/scan/scan_iso8601.c +@@ -1,5 +1,4 @@ + #define _GNU_SOURCE +-#define __deprecated__ + #include "scan.h" + #include "byte.h" + #include "case.h" +--- a/scan/scan_httpdate.c ++++ b/scan/scan_httpdate.c +@@ -1,5 +1,4 @@ + #define _GNU_SOURCE +-#define __deprecated__ + #include "scan.h" + #include "byte.h" + #include "case.h"