From patchwork Sun Feb 24 20:49:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artem Panfilov X-Patchwork-Id: 1047538 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lL7WP1t1"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 446xz96yMvz9s5c for ; Mon, 25 Feb 2019 07:49:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2D6162283A; Sun, 24 Feb 2019 20:49:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eu9jKf5i7Grl; Sun, 24 Feb 2019 20:49:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 74A682263E; Sun, 24 Feb 2019 20:49:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3E2701BF41B for ; Sun, 24 Feb 2019 20:49:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3B36185259 for ; Sun, 24 Feb 2019 20:49:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wO6TxErMuKbc for ; Sun, 24 Feb 2019 20:49:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 4E44B85247 for ; Sun, 24 Feb 2019 20:49:50 +0000 (UTC) Received: by mail-lf1-f65.google.com with SMTP id m11so5339009lfc.6 for ; Sun, 24 Feb 2019 12:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HguFN95sBJzupo407t+x3ECaM3f1RK4GTnR3D8P+Vfg=; b=lL7WP1t1P0OJilbzAbmZd2sUaRRiHxXFC4s5mzpmeA2uYCEBV0Jy0z5y2HoFsNX4hj duldx/Spe+xxUrFw9uL755j7poO2yorlTw09k4SPumVVJBZLQ4OKEOM5arCbQuHehA9A 7yBQxKM2nF9pLiA/0gH5uuznyEXjwue+GjO1SYIKU5fUk1s2//dP3NePDB7xJzMn2A57 +m/vUbpvrXpKzVftHuhWB4LANS/7UblK0M/WYIyuH6xU/ylrWLPPjfQ3ayPLFEhJYQw9 7m50ZpRf8xKUMwTbQUzrfXkGf9H03g8esx0kCHkESHfwJXKEqRrNzobuBo4fJxGXC9nI LaaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=HguFN95sBJzupo407t+x3ECaM3f1RK4GTnR3D8P+Vfg=; b=Recu38B89TKyGGTxLCDnVdex42VfpBy3mQV+X0CGXMnnAIwi4T52vIMR5q+LFwHMaq YGABtqXHRNF0SWk0KudE5z4EMzSSYk28qA23IpNXrOKSWA7zH+LAflcqsNQEUq1QHwRx 0vC5BWDOYm2D9jhVypM1xAsB2wtw4HpjCQ0cLAaN+gS6SOzTqgXPVrvSckhQUe2MWzAm mqanGkuAb3iT1ojDUz8I+wHJOXXBNHgdDdcBMHKNMnovwIE8z9Rx06E7eGrXGAdOIlWs hAPfzRA8/1+M4iJoGtNWRkTQkvhIXHUdR0Iw+92yT6gTv8z4Azhf17RtW5oJ1DN/waGM U0lA== X-Gm-Message-State: AHQUAuYXOrvcPuRcDuBE/RAbaPDXgv+PF9ITMnFPjIrIg5S8SmLpONTK mgOAI/birZjB2lAHXVze1SqP2Nag8EU= X-Google-Smtp-Source: AHgI3IZo54KIn73V1ERlHFmovybswKdGFlfJWyN3pzYpzZlvfkL22++5TJkTrFR6xBBuyTVTrLXV+w== X-Received: by 2002:ac2:510e:: with SMTP id q14mr7564128lfb.106.1551041388090; Sun, 24 Feb 2019 12:49:48 -0800 (PST) Received: from localhost.localdomain ([31.134.130.226]) by smtp.googlemail.com with ESMTPSA id e21sm942555lfb.68.2019.02.24.12.49.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 12:49:47 -0800 (PST) From: Artem Panfilov To: buildroot@buildroot.org Date: Sun, 24 Feb 2019 23:49:31 +0300 Message-Id: <20190224204931.2759-1-panfilov.artyom@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/linuxptp: fix build with new headers X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Artem Panfilov , Petr Kulhavy Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" net_tstamp.h in recent kernel versions requires time.h for clockid_t. Fixes: http://autobuild.buildroot.net/results/93903e8abfeaa7df0b6525033fa63e29f2c9e7ae Signed-off-by: Artem Panfilov --- ...fix-building-with-new-kernel-headers.patch | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 package/linuxptp/0002-fix-building-with-new-kernel-headers.patch diff --git a/package/linuxptp/0002-fix-building-with-new-kernel-headers.patch b/package/linuxptp/0002-fix-building-with-new-kernel-headers.patch new file mode 100644 index 0000000000..332e5491ff --- /dev/null +++ b/package/linuxptp/0002-fix-building-with-new-kernel-headers.patch @@ -0,0 +1,55 @@ +From d663a483c40939bad58301c256d86da1f3da6cc0 Mon Sep 17 00:00:00 2001 +From: Miroslav Lichvar +Date: Tue, 13 Nov 2018 13:16:08 +0100 +Subject: [PATCH] Fix building with new kernel headers. + +net_tstamp.h in recent kernel versions requires time.h for clockid_t. + +Signed-off-by: Miroslav Lichvar +--- + clock.c | 2 +- + sk.c | 1 + + timemaster.c | 1 + + 3 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/clock.c b/clock.c +index 9c493c3..8533b39 100644 +--- a/clock.c ++++ b/clock.c +@@ -17,11 +17,11 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #include ++#include + #include + #include + #include + #include +-#include + #include + + #include "address.h" +diff --git a/sk.c b/sk.c +index e2b1f28..30162eb 100644 +--- a/sk.c ++++ b/sk.c +@@ -18,6 +18,7 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #include ++#include + #include + #include + #include +diff --git a/timemaster.c b/timemaster.c +index 058678f..00db59f 100644 +--- a/timemaster.c ++++ b/timemaster.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + #include + #include + #include