buildroot/package/quota/0005-include-fcntl.patch
Thomas Petazzoni 9317b9542b quota: fix build on musl
This commit adds 3 patches to the quota package, that allows to build
it with musl. One patch was borrowed from OpenEmbedded, the other two
patches are really trivial.

Fixes:

  http://autobuild.buildroot.net/results/6f0ff905251d12e198654b8ffe0ea5c15186371e/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-13 18:03:57 +01:00

21 lines
509 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Include <fcntl.h> to get loff_t definition
Fixes the following build issue with musl:
dqblk_v2.h:32:2: error: unknown type name loff_t
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/dqblk_v2.h
===================================================================
--- a/dqblk_v2.h
+++ b/dqblk_v2.h
@@ -8,6 +8,7 @@
#define GUARD_DQBLK_V2_H
#include <sys/types.h>
+#include <fcntl.h>
#include "quota_tree.h"
#define Q_V2_GETQUOTA 0x0D00 /* Get limits and usage */