configure: be explicit about "XP" Windows API version
[fio.git] / configure
index 79a5134d6c36081e9b043d9af5fb97322b475ce1..434336573d97012b6ea67efb263de543ed87bf44 100755 (executable)
--- a/configure
+++ b/configure
@@ -394,6 +394,8 @@ CYGWIN*)
   fi
   if test "$target_win_ver" = "XP"; then
     output_sym "CONFIG_WINDOWS_XP"
+    # Technically the below is targeting 2003
+    CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0502"
   elif test "$target_win_ver" = "7"; then
     output_sym "CONFIG_WINDOWS_7"
     CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0601"