libnetfilter_log: fix musl.
This commit is contained in:
parent
ce25d5fc11
commit
ee69ba98f2
3 changed files with 38 additions and 0 deletions
21
srcpkgs/libnetfilter_log/patches/sys-types.patch
Normal file
21
srcpkgs/libnetfilter_log/patches/sys-types.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
From 7529487f70e244cd31ef84b037b1c32749c134a7 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Leblond <eric@regit.org>
|
||||
Date: Sun, 4 Nov 2012 09:29:44 +0100
|
||||
Subject: Add include needed for integer type definition.
|
||||
|
||||
|
||||
diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h
|
||||
index 6b0d3b0..a1331de 100644
|
||||
--- include/libnetfilter_log/libnetfilter_log.h
|
||||
+++ include/libnetfilter_log/libnetfilter_log.h
|
||||
@@ -9,6 +9,7 @@
|
||||
#ifndef __LIBNETFILTER_LOG_H
|
||||
#define __LIBNETFILTER_LOG_H
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include <libnetfilter_log/linux_nfnetlink_log.h>
|
||||
|
||||
struct nflog_handle;
|
||||
--
|
||||
cgit v0.10.2
|
||||
|
14
srcpkgs/libnetfilter_log/patches/sys-types2.patch
Normal file
14
srcpkgs/libnetfilter_log/patches/sys-types2.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/include/libnetfilter_log/libipulog.h b/include/libnetfilter_log/libipulog.h
|
||||
index 8a4ae2a..0994b4a 100644
|
||||
--- include/libnetfilter_log/libipulog.h
|
||||
+++ include/libnetfilter_log/libipulog.h
|
||||
@@ -5,6 +5,8 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
+#include <sys/types.h> /* for u_int*_t */
|
||||
+
|
||||
/* FIXME: glibc sucks */
|
||||
#ifndef MSG_TRUNC
|
||||
#define MSG_TRUNC 0x20
|
||||
|
|
@ -12,6 +12,9 @@ short_desc="A userspace library providing interface to packets that have been lo
|
|||
distfiles="http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${version}.tar.bz2"
|
||||
checksum=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
|
||||
|
||||
pre_configure() {
|
||||
sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' utils/* src/* include/libnetfilter_log/*
|
||||
}
|
||||
|
||||
libnetfilter_log-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} libnfnetlink-devel"
|
||||
|
|
Loading…
Reference in a new issue