mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
50
package/libnet/0001-support-musl-libc.patch
Normal file
50
package/libnet/0001-support-musl-libc.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
From ffd7fab744a9ad2893169a8fb6244074604d5d0d Mon Sep 17 00:00:00 2001
|
||||
From: rofl0r <retnyg@gmx.net>
|
||||
Date: Tue, 12 Aug 2014 21:51:39 +0200
|
||||
Subject: [PATCH] Support musl libc, remove support for glibc < 2.1
|
||||
|
||||
The workarounds for glibc < 2.1 (was released february 1999) break the
|
||||
build with musl libc.
|
||||
|
||||
It is very unlikely that 2.0 or earlier is still in use, and if so,
|
||||
1) that's a big security hole
|
||||
2) code wouldnt compile anyway since noone tested build in the last decade
|
||||
3) user of it wouldn't expect anyway to get bleeding edge sw built on it,
|
||||
so he would just use the latest version that works for him.
|
||||
|
||||
Closes #52
|
||||
---
|
||||
libnet/src/libnet_link_linux.c | 11 -----------
|
||||
1 file changed, 11 deletions(-)
|
||||
|
||||
diff --git a/libnet/src/libnet_link_linux.c b/libnet/src/libnet_link_linux.c
|
||||
index 054458d..3c6df3c 100644
|
||||
--- a/src/libnet_link_linux.c
|
||||
+++ b/src/libnet_link_linux.c
|
||||
@@ -30,26 +30,15 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <net/if.h>
|
||||
-#if (__GLIBC__)
|
||||
#include <netinet/if_ether.h>
|
||||
#include <net/if_arp.h>
|
||||
-#else
|
||||
-#include <linux/if_arp.h>
|
||||
-#include <linux/if_ether.h>
|
||||
-#endif
|
||||
|
||||
#if (HAVE_PACKET_SOCKET)
|
||||
#ifndef SOL_PACKET
|
||||
#define SOL_PACKET 263
|
||||
#endif /* SOL_PACKET */
|
||||
-#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
|
||||
#include <netpacket/packet.h>
|
||||
#include <net/ethernet.h> /* the L2 protocols */
|
||||
-#else
|
||||
-#include <asm/types.h>
|
||||
-#include <linux/if_packet.h>
|
||||
-#include <linux/if_ether.h> /* The L2 protocols */
|
||||
-#endif
|
||||
#endif /* HAVE_PACKET_SOCKET */
|
||||
|
||||
#include "../include/libnet.h"
|
||||
7
package/libnet/Config.in
Normal file
7
package/libnet/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_LIBNET
|
||||
bool "libnet"
|
||||
help
|
||||
libnet provides a portable framework for low-level network
|
||||
packet construction.
|
||||
|
||||
http://sourceforge.net/projects/libnet-dev
|
||||
3
package/libnet/libnet.hash
Normal file
3
package/libnet/libnet.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From https://sourceforge.net/projects/libnet-dev/files/
|
||||
sha1 dffff71c325584fdcf99b80567b60f8ad985e34c libnet-1.1.6.tar.gz
|
||||
md5 710296fe424a49344e5fcc0d09e53317 libnet-1.1.6.tar.gz
|
||||
15
package/libnet/libnet.mk
Normal file
15
package/libnet/libnet.mk
Normal file
@@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
#
|
||||
# libnet
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBNET_VERSION = 1.1.6
|
||||
LIBNET_SITE = http://sourceforge.net/projects/libnet-dev/files
|
||||
LIBNET_INSTALL_STAGING = YES
|
||||
# PF_PACKET is always available on Linux
|
||||
LIBNET_CONF_OPTS = libnet_cv_have_packet_socket=yes
|
||||
LIBNET_LICENSE = BSD-2-Clause, BSD-3-Clause
|
||||
LIBNET_LICENSE_FILES = doc/COPYING
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user