summaryrefslogtreecommitdiff
path: root/src/scandir_posix.c
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2020-11-22 18:18:02 -0800
committerGreg Ercolano <erco@seriss.com>2020-11-22 18:18:02 -0800
commita41d8c0e60b6964b416c025a56d7568e83ae70da (patch)
treedfa3172c608fc292dcd167d86629acf74df2eace /src/scandir_posix.c
parenta47c907fca7b055f1f9428344d2dfefc36a9c9df (diff)
Fix issue #162
Diffstat (limited to 'src/scandir_posix.c')
-rw-r--r--src/scandir_posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scandir_posix.c b/src/scandir_posix.c
index 9d8396619..e83a12009 100644
--- a/src/scandir_posix.c
+++ b/src/scandir_posix.c
@@ -48,6 +48,7 @@
#include <stddef.h> /* For 'offsetof()', 'NULL' and 'size_t' */
#include <limits.h> /* For 'INT_MAX' */
#include <string.h> /* For 'memcpy()' */
+#include "flstring.h" /* For 'fl_snprintf()' */
#if defined(HAVE_PTHREAD) && defined(HAVE_PTHREAD_H)
# include <pthread.h>
#endif /* HAVE_PTHREAD */
@@ -137,7 +138,7 @@ int
fl_scandir(const char *dir, struct dirent ***namelist,
int (*sel)(struct dirent *),
int (*compar)(struct dirent **, struct dirent **),
- char *errmsg, int errmsg_sz) {
+ char *errmsg, int errmsg_sz)
{
int result = -1;
DIR *dirp;