Fix linux build

This commit is contained in:
UnknownShadow200 2019-08-25 19:51:21 +10:00
parent 39cd47b2d3
commit 8b48a3381c
2 changed files with 2 additions and 3 deletions

View File

@ -61,7 +61,7 @@ I am assuming you used the installer from https://sourceforge.net/projects/mingw
I am assuming you used the installer from http://www.mingw.org/
1. Install MinGW. You need mingw32-base-bin and msys-base-bin packages.
2. Run *msys.bat* in the *C:\MinGW\msys\1.0* folder.
3. Compile with the same flags as **MinGW-w64**, but also add ```-DUNICODE```
3. Compile with the same flags as under **Cross Compiling for windows**, but use *gcc* instead of *i586-mingw32msvc-gcc*
#### Linux

View File

@ -22,9 +22,8 @@
/* OpenBSD doesn't provide sys/ucontext.h */
#elif defined CC_BUILD_LINUX || defined CC_BUILD_ANDROID
/* Need to define this to get REG_ constants */
#define __USE_GNU
#define _GNU_SOURCE
#include <sys/ucontext.h>
#undef __USE_GNU
#include <signal.h>
#elif defined CC_BUILD_POSIX
#include <signal.h>