From 31a8112c51347ba4af5ddcfbea0cbf5a96825617 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 30 Jan 2022 22:47:45 -0800 Subject: [PATCH] linuxptp: fix bad formats with ppc64 and mips64 Signed-off-by: Rosen Penev --- net/linuxptp/Makefile | 2 +- net/linuxptp/patches/010-64bit.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/linuxptp/patches/010-64bit.patch diff --git a/net/linuxptp/Makefile b/net/linuxptp/Makefile index 2a30c8bb3..762d5db6d 100644 --- a/net/linuxptp/Makefile +++ b/net/linuxptp/Makefile @@ -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 index 000000000..043c35e59 --- /dev/null +++ b/net/linuxptp/patches/010-64bit.patch @@ -0,0 +1,12 @@ +--- a/ts2phc_slave.c ++++ b/ts2phc_slave.c +@@ -4,6 +4,9 @@ + * @note Copyright (C) 2019 Balint Ferencz + * @note SPDX-License-Identifier: GPL-2.0+ + */ ++#ifndef __SANE_USERSPACE_TYPES__ ++#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ ++#endif + #include + #include + #include