summaryrefslogtreecommitdiffstats
path: root/programs/util.h
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 18:31:05 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 18:31:05 (GMT)
commit2efedaf7dc8f20d2e5761ee600712bdb0371bc5c (patch)
tree4d1d3ba951f814bb00094f1cc1f2e35abf7282bb /programs/util.h
parent6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d (diff)
downloadlz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.zip
lz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.tar.gz
lz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.tar.bz2
fixed gcc warnings
Diffstat (limited to 'programs/util.h')
-rw-r--r--programs/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/programs/util.h b/programs/util.h
index 5ec1a4a..b0529b0 100644
--- a/programs/util.h
+++ b/programs/util.h
@@ -34,6 +34,7 @@ extern "C" {
******************************************/
#include "platform.h" /* Compiler options, PLATFORM_POSIX_VERSION */
#include <stdlib.h> /* malloc */
+#include <stddef.h> /* size_t, ptrdiff_t */
#include <stdio.h> /* fprintf */
#include <sys/types.h> /* stat, utime */
#include <sys/stat.h> /* stat */
@@ -339,6 +340,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
#elif defined(__linux__) || (PLATFORM_POSIX_VERSION >= 200112L) /* opendir, readdir require POSIX.1-2001 */
# define UTIL_HAS_CREATEFILELIST
# include <dirent.h> /* opendir, readdir */
+# include <string.h> /* strerror, memcpy */
UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
{