• 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/libnl/0001-fix-libc-kernel-headers-conflict.patch
Baruch SiachBaruch Siach committed c358dbd0e2112 Mar 2017
Raw file
Source viewDiff to previous
+ * This prevents the redefinition of a construct already defined by the kernel.
 
1
Fix libc kernel headers conflict
2
​
3
Add missing kernel headers to fix conflicts with toolchain provided kernel
4
headers of older versions.
5
​
6
This patch is equivalent to upstream commit 6c7f4215003 ("build: distribute
7
in.h in6.h libc-compat.h"). These files are present in upstream git repo, but
8
are missing from the distributed tarball.
9
​
10
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
11
---
12
​
13
--- /dev/null
14
+++ b/include/linux-private/linux/in.h
15
@@ -0,0 +1,299 @@
16
+/*
17
+ * INET        An implementation of the TCP/IP protocol suite for the LINUX
18
+ *     operating system.  INET is implemented using the  BSD Socket
19
+ *     interface as the means of communication with the user level.
20
+ *
21
+ *     Definitions of the Internet Protocol.
22
+ *
23
+ * Version:    @(#)in.h    1.0.1   04/21/93
24
+ *
25
+ * Authors:    Original taken from the GNU Project <netinet/in.h> file.
26
+ *     Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
27
+ *
28
+ *     This program is free software; you can redistribute it and/or
29
+ *     modify it under the terms of the GNU General Public License
30
+ *     as published by the Free Software Foundation; either version
31
+ *     2 of the License, or (at your option) any later version.
32
+ */
33
+#ifndef _LINUX_IN_H
34
+#define _LINUX_IN_H
35
+
36
+#include <linux/types.h>
37
+#include <linux/libc-compat.h>
38
+#include <linux/socket.h>
39
+
40
+#if __UAPI_DEF_IN_IPPROTO
41
+/* Standard well-defined IP protocols.  */
42
+enum {
43
+  IPPROTO_IP = 0,      /* Dummy protocol for TCP       */
44
+#define IPPROTO_IP     IPPROTO_IP
45
+  IPPROTO_ICMP = 1,        /* Internet Control Message Protocol    */
46
+#define IPPROTO_ICMP       IPPROTO_ICMP
47
+  IPPROTO_IGMP = 2,        /* Internet Group Management Protocol   */
48
+#define IPPROTO_IGMP       IPPROTO_IGMP
49
+  IPPROTO_IPIP = 4,        /* IPIP tunnels (older KA9Q tunnels use 94) */
50
+#define IPPROTO_IPIP       IPPROTO_IPIP
51
+  IPPROTO_TCP = 6,     /* Transmission Control Protocol    */
52
+#define IPPROTO_TCP        IPPROTO_TCP
53
+  IPPROTO_EGP = 8,     /* Exterior Gateway Protocol        */
54
+#define IPPROTO_EGP        IPPROTO_EGP
55
+  IPPROTO_PUP = 12,        /* PUP protocol             */
56
+#define IPPROTO_PUP        IPPROTO_PUP
57
+  IPPROTO_UDP = 17,        /* User Datagram Protocol       */
58
+#define IPPROTO_UDP        IPPROTO_UDP
59
+  IPPROTO_IDP = 22,        /* XNS IDP protocol         */
60
+#define IPPROTO_IDP        IPPROTO_IDP
61
+  IPPROTO_TP = 29,     /* SO Transport Protocol Class 4    */
62
+#define IPPROTO_TP     IPPROTO_TP
63
+  IPPROTO_DCCP = 33,       /* Datagram Congestion Control Protocol */
  • 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.