Fixed warning on Mac OS X
diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c
index d814918..b517c77 100644
--- a/test/testautomation_surface.c
+++ b/test/testautomation_surface.c
@@ -13,6 +13,10 @@
#include "SDL.h"
#include "SDL_test.h"
+#ifdef __MACOSX__
+#include <unistd.h> /* For unlink() */
+#endif
+
/* ================= Test Case Implementation ================== */
/* Shared test surface */