Message ID | 20180828171654.532-1-rafael.tinoco@linaro.org |
---|---|
State | Accepted |
Commit | 822ad20433799193e2180862137c36f24e5d27d6 |
Headers | show |
Series | [v2] fs/read_all: define FNM_EXTMATCH if needed | expand |
Hi! Pushed, thanks.
diff --git a/include/lapi/fnmatch.h b/include/lapi/fnmatch.h new file mode 100644 index 000000000..9628ac440 --- /dev/null +++ b/include/lapi/fnmatch.h @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2018 Linaro Limited. All rights reserved. + * Author: Rafael David Tinoco <rafael.tinoco@linaro.org> + */ + +#ifndef FNMATCH_H__ +#define FNMATCH_H__ + +#ifndef FNM_EXTMATCH +#define FNM_EXTMATCH 0 +#endif + +#endif diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c index ac463dba9..1f0b315a1 100644 --- a/testcases/kernel/fs/read_all/read_all.c +++ b/testcases/kernel/fs/read_all/read_all.c @@ -40,6 +40,7 @@ */ #include <sys/types.h> #include <sys/stat.h> +#include <lapi/fnmatch.h> #include <stdlib.h> #include <stdio.h> #include <dirent.h>