util: use _WIN32 instead of WIN32

MinGW defines only _WIN32, but doesn't have fcntl, so we need to use the
windows path.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Dylan Baker 2019-09-19 11:04:21 -07:00
parent f1fe656a92
commit 16bc3073cb
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
* Based on weston shared/os-compatibility.c
*/
#ifndef WIN32
#ifndef _WIN32
#include "anon_file.h"
#include <unistd.h>