Include required header files.
diff --git a/regress/liboverride-test.c b/regress/liboverride-test.c
index e431af4..29e4780 100644
--- a/regress/liboverride-test.c
+++ b/regress/liboverride-test.c
@@ -32,7 +32,9 @@
   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #ifdef _WIN32
 int main(int argc, const char *argv[]) {
@@ -46,7 +48,6 @@
 
 #include <errno.h>
 #include <unistd.h>
-#include <string.h>
 
 #include "zip.h"