<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - include the missing header and use more portable types"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1163">1163</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>include the missing header and use more portable types
</td>
</tr>
<tr>
<th>Product</th>
<td>libnfnetlink
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>libnfnetlink
</td>
</tr>
<tr>
<th>Assignee</th>
<td>netfilter-buglog@lists.netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xw897002528@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>i need to use the following scripts to fix the build with musl:
sed -e "/#include <linux\/netlink.h>/i #include <stdint.h>" \
-i include/libnfnetlink/libnfnetlink.h
find . -type f -exec sed -e "s;u_int;uint;g" -i "{}" \;
Header files provided by musl are very clear and strict, so
1. The first command means libnfnetlink depends on an indirect way to include
stdint.h, maybe one of the glibc-header. It's not portable.
2. The second command means you use a type specified by gnu or bsd, though it's
defined at sys/types.h in musl, too, but you did not include the file directly.
My suggestion is to use unsigned int instead.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>