mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
FreeBSD QuickJS Patch (#203)
This commit is contained in:
@@ -47,8 +47,15 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__FreeBSD__)
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
typedef sig_t sighandler_t;
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#if !defined(environ)
|
||||
#include <crt_externs.h>
|
||||
#define environ (*_NSGetEnviron())
|
||||
|
Reference in New Issue
Block a user