From 008316aa291e0930eba067ed7b0772d0009813b0 Mon Sep 17 00:00:00 2001 From: Hanno Boeck Date: Wed, 27 Jan 2016 15:06:50 +0100 Subject: [PATCH] test: Add missing include The test in test/strmode.c can fail to compile depending on the optimization flags used. The constants that are used in this file (S_IFREG etc.) come from the include file. It seems gcc ignores this error if one compiles with "-O2" (default), but if one uses no optimization it fails. Add the missing include and it works all the time. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93880 Signed-off-by: Guillem Jover --- test/strmode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/strmode.c b/test/strmode.c index 2584c27..405ace1 100644 --- a/test/strmode.c +++ b/test/strmode.c @@ -24,6 +24,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include