Change order of includes in discovery module

This helps avoid a conflict between windows.h and unistd.h
This commit is contained in:
Thomas Jensen 2021-03-22 19:36:21 +01:00
parent 5a47af57ae
commit f6913d6684
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -28,6 +28,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef __MINGW32__
#include <windows.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@ -36,10 +39,6 @@
#include "tools.h"
#include "discovery.h"
#ifdef __MINGW32__
#include <windows.h>
#endif
static int can_read_file(const char *filename)