libtins: fix compilation with GCC13
authorRosen Penev <rosenp@gmail.com>
Sat, 1 Jul 2023 18:31:23 +0000 (11:31 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 11 Jul 2023 15:38:29 +0000 (08:38 -0700)
Patch taken from upstream.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libtins/Makefile
libs/libtins/patches/020-gcc13.patch [new file with mode: 0644]

index b511626bde617a97b239f1f92c12d292624e85dd..ee1e80ecd85e8590279d8331e2df1cc80db3737a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libtins
 PKG_VERSION:=4.4
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/mfontanini/libtins/tar.gz/v$(PKG_VERSION)?
diff --git a/libs/libtins/patches/020-gcc13.patch b/libs/libtins/patches/020-gcc13.patch
new file mode 100644 (file)
index 0000000..07b6bd6
--- /dev/null
@@ -0,0 +1,21 @@
+From 812be7966d445ec56e88eab512f8fd2d57152427 Mon Sep 17 00:00:00 2001
+From: Vasiliy Glazov <vascom2@gmail.com>
+Date: Tue, 24 Jan 2023 19:29:36 +0300
+Subject: [PATCH] Fix build with GCC13 (#496)
+
+Due to changes in GCC13 need fix include.
+---
+ include/tins/ip_address.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/tins/ip_address.h
++++ b/include/tins/ip_address.h
+@@ -33,7 +33,7 @@
+ #include <string>
+ #include <iosfwd>
+ #include <functional>
+-#include <stdint.h>
++#include <cstdint>
+ #include <tins/cxxstd.h>
+ #include <tins/macros.h>