• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/chrony/0001-ntp-fix-build-with-musl-libc.patch
Baruch SiachBaruch Siach committed b6f7e4de52514 Nov 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 1e64bc4c4379ae3e55be3c518e0e3e22c8c4ae77 Mon Sep 17 00:00:00 2001
2
From: Baruch Siach <baruch@tkos.co.il>
3
Date: Tue, 14 Nov 2017 13:23:57 +0200
4
Subject: [PATCH] ntp: fix build with musl libc
5
​
6
The configure script enables HAVE_LINUX_TIMESTAMPING_OPT_PKTINFO based
7
on the existence of struct scm_ts_pktinfo and
8
SOF_TIMESTAMPING_OPT_PKTINFO that were introduced in Linux kernel v4.13
9
in the linux/net_tstamp.h kernel header. But this feature also requires
10
SCM_TIMESTAMPING_PKTINFO that is defined in the socket.h header. musl
11
libc provides its own version of socket.h, and as of musl version 1.1.16
12
this macro is missing. Define this macro in the code as a temporary
13
measure until musl is updated to its latest version.
14
​
15
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
16
---
17
Upstream status: not upstreamable
18
---
19
 ntp_io_linux.c | 4 ++++
20
 1 file changed, 4 insertions(+)
21
​
22
diff --git a/ntp_io_linux.c b/ntp_io_linux.c
23
index 00caed06f7ba..2214a6f6f6c5 100644
24
--- a/ntp_io_linux.c
25
+++ b/ntp_io_linux.c
26
@@ -574,6 +574,10 @@ extract_udp_data(unsigned char *msg, NTP_Remote_Address *remote_addr, int len)
27
 
28
 /* ================================================== */
29
 
30
+#ifndef SCM_TIMESTAMPING_PKTINFO
31
+#define SCM_TIMESTAMPING_PKTINFO 58
32
+#endif
33
+
34
 int
35
 NIO_Linux_ProcessMessage(NTP_Remote_Address *remote_addr, NTP_Local_Address *local_addr,
36
                          NTP_Local_Timestamp *local_ts, struct msghdr *hdr, int length)
37
-- 
38
2.15.0
39
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.