Only #include <sys/stat.h> on macOS

The `<sys/stat.h>` include in `launcher.c` is only used to check if the executable is a symlink on macOS. Therefore it is not needed on other platforms.
This commit is contained in:
Luflosi 2019-06-26 14:02:57 +02:00
parent 7fd1053e0f
commit 1b59761a19
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -15,12 +15,12 @@
#ifdef __APPLE__
#include <mach-o/dyld.h>
#include <sys/syslimits.h>
#include <sys/stat.h>
#else
#include <limits.h>
#endif
#include <Python.h>
#include <wchar.h>
#include <sys/stat.h>
#define MIN(x, y) ((x) < (y)) ? (x) : (y)
#define MAX_ARGC 1024