• 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/libnfnetlink/0002-musl.patch
Thomas PetazzoniThomas Petazzoni committed 5e554d3c78708 Aug 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Include <sys/types.h> to get the u_int* definitions
2
​
3
This is needed to fix the build with the musl C library, and this
4
patch comes from
5
http://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch.
6
​
7
It will no longer be needed with upcoming upstream releases of
8
libnfnetlink, since they have switched to use the <stdint.h> types
9
instead. However this change was too invasive to backport.
10
​
11
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
​
13
--- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h
14
+++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h
15
@@ -1,6 +1,6 @@
16
 #ifndef _NFNETLINK_H
17
 #define _NFNETLINK_H
18
-#include <linux/types.h>
19
+#include <sys/types.h>
20
 #include <libnfnetlink/linux_nfnetlink_compat.h>
21
 
22
 enum nfnetlink_groups {
23
--- libnfnetlink-1.0.1.orig/include/libnfnetlink/libnfnetlink.h
24
+++ libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h
25
@@ -15,6 +15,7 @@
26
 #define aligned_u64 unsigned long long __attribute__((aligned(8)))
27
 #endif
28
 
29
+#include <sys/types.h>
30
 #include <sys/socket.h>    /* for sa_family_t */
31
 #include <linux/netlink.h>
32
 #include <libnfnetlink/linux_nfnetlink.h>
  • 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.