• 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/iproute2/0002-Fix-build-with-uClibc-ng.patch
Baruch SiachBaruch Siach committed c12e01cc2c319 Jul 2017
Raw file
Source viewDiff to previous
 
1
From 2ac2f416072d9968a9ea2dd9f48168223a1147b0 Mon Sep 17 00:00:00 2001
2
From: Baruch Siach <baruch@tkos.co.il>
3
Date: Tue, 18 Jul 2017 14:09:06 +0300
4
Subject: [PATCH] Fix build with uClibc-ng
5
​
6
Add a local definition for IPPROTO_MH to fix build with uClibc-ng. As of
7
version 1.0.25, the uClibc-ng netinet/in.h header does not provide this
8
definition. The kernel provided definition is masked by libc-compat.h. Add
9
this local fix until uClibc-ng syncs netinet/in.h with glibc.
10
​
11
This partially reverts upstream commit a9ae195a2169 (xfrm: get #define's from
12
linux includes)
13
​
14
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
15
---
16
Upstream status: non upstreamable; local uClibc-ng compatibility fix
17
---
18
 ip/xfrm.h | 4 ++++
19
 1 file changed, 4 insertions(+)
20
​
21
diff --git a/ip/xfrm.h b/ip/xfrm.h
22
index 54d80ce5e949..50b85550fb45 100644
23
--- a/ip/xfrm.h
24
+++ b/ip/xfrm.h
25
@@ -30,6 +30,10 @@
26
 #include <linux/xfrm.h>
27
 #include <linux/ipsec.h>
28
 
29
+#ifndef IPPROTO_MH
30
+# define IPPROTO_MH     135
31
+#endif
32
+
33
 #define XFRMS_RTA(x)  ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))))
34
 #define XFRMS_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_usersa_info))
35
 
36
-- 
37
2.13.2
38
​
  • 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.