• 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/aiccu/0004-if-ether-header.patch
Alex SuykovAlex Suykov committed 0ad167e25bc26 Mar 2015
Raw file
Source viewDiff to previous
 
1
musl does not allow using <netinet/*> together with <linux/*> headers.
2
Since there are both netinet/if_ether.h and linux/if_ether.h providing
3
the same definitions, use linux/if_ether.h whenever other linux/*
4
headers are included.
5
​
6
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
7
​
8
--- aiccu/common/common.h
9
+++ aiccu/common/common.h
10
@@ -91,11 +91,12 @@
11
    #include <sys/select.h>
12
 
13
    #include <net/if.h>
14
-   #include <netinet/if_ether.h>
15
 #ifdef linux
16
    #include <netpacket/packet.h>
17
+   #include <linux/if_ether.h>
18
    #include <linux/if_tun.h>
19
 #else
20
+   #include <netinet/if_ether.h>
21
 #ifdef _DFBSD
22
    #include <net/tun/if_tun.h>
23
 #else
  • 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.