linuxptp: fix compilation with GCC14
authorRosen Penev <[email protected]>
Sun, 14 Jul 2024 18:48:27 +0000 (11:48 -0700)
committerRosen Penev <[email protected]>
Mon, 15 Jul 2024 07:12:41 +0000 (00:12 -0700)
Missing header.

Signed-off-by: Rosen Penev <[email protected]>
net/linuxptp/Makefile
net/linuxptp/patches/020-gcc14.patch [new file with mode: 0644]

index ad0b631577c693977d0252a30b56bcd7d6a80a5d..e0b34d3d7eceeedf0969e8bde794edc05428d609 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=linuxptp
 PKG_VERSION:=4.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION)
diff --git a/net/linuxptp/patches/020-gcc14.patch b/net/linuxptp/patches/020-gcc14.patch
new file mode 100644 (file)
index 0000000..13ac073
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/interface.c
++++ b/interface.c
+@@ -5,6 +5,7 @@
+  * @note SPDX-License-Identifier: GPL-2.0+
+  */
+ #include <stdlib.h>
++#include <string.h>
+ #include "interface.h"
+ struct interface {