Patched to compile on Windows.
diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c
index 43fc24e..d04db19 100644
--- a/test/testautomation_surface.c
+++ b/test/testautomation_surface.c
@@ -8,7 +8,9 @@
#define _CRT_NONSTDC_NO_DEPRECATE
#include <stdio.h>
+#ifndef __WIN32__
#include <unistd.h>
+#endif
#include <sys/stat.h>
#include "SDL.h"