summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHanno Boeck <hanno@hboeck.de>2016-01-27 15:06:50 +0100
committerGuillem Jover <guillem@hadrons.org>2016-01-27 15:24:39 +0100
commit008316aa291e0930eba067ed7b0772d0009813b0 (patch)
treeede3465906291816219c5bf75e7868b0a61d1edd /test
parente4ab2c62cdc5457ea4b8cabd6c7d391810e17fc1 (diff)
test: Add missing <sys/stat.h> 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 <sys/stat.h> 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 <guillem@hadrons.org>
Diffstat (limited to 'test')
-rw-r--r--test/strmode.c1
1 files changed, 1 insertions, 0 deletions
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 <sys/stat.h>
#include <assert.h>
#include <string.h>