fixed minor declaration issue with clang on msys
authorCyan4973 <cyan@fb.com>
Mon, 23 Apr 2018 22:52:44 +0000 (15:52 -0700)
committerCyan4973 <cyan@fb.com>
Mon, 23 Apr 2018 22:52:44 +0000 (15:52 -0700)
programs/util.h

index ff25106..ef6ca77 100644 (file)
@@ -30,8 +30,9 @@ extern "C" {
 *  Dependencies
 ******************************************/
 #include "platform.h"     /* PLATFORM_POSIX_VERSION */
-#include <stdlib.h>       /* malloc */
 #include <stddef.h>       /* size_t, ptrdiff_t */
+#include <stdlib.h>       /* malloc */
+#include <string.h>       /* strlen, strncpy */
 #include <stdio.h>        /* fprintf */
 #include <sys/types.h>    /* stat, utime */
 #include <sys/stat.h>     /* stat */