linuxptp: fix bad formats with ppc64 and mips64
authorRosen Penev <rosenp@gmail.com>
Mon, 31 Jan 2022 06:47:45 +0000 (22:47 -0800)
committerRosen Penev <rosenp@gmail.com>
Mon, 31 Jan 2022 15:04:17 +0000 (07:04 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/linuxptp/Makefile
net/linuxptp/patches/010-64bit.patch [new file with mode: 0644]

index 2a30c8bb3469a8c0cd4c3685fbd6e8853eef8b79..762d5db6d77c03804d0d17b68b3c6583892ca1b9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=linuxptp
 PKG_VERSION:=3.1.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/010-64bit.patch b/net/linuxptp/patches/010-64bit.patch
new file mode 100644 (file)
index 0000000..043c35e
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/ts2phc_slave.c
++++ b/ts2phc_slave.c
+@@ -4,6 +4,9 @@
+  * @note Copyright (C) 2019 Balint Ferencz <fernya@sch.bme.hu>
+  * @note SPDX-License-Identifier: GPL-2.0+
+  */
++#ifndef __SANE_USERSPACE_TYPES__
++#define __SANE_USERSPACE_TYPES__      /* For PPC64, to get LL64 types */
++#endif
+ #include <errno.h>
+ #include <linux/ptp_clock.h>
+ #include <poll.h>