FreeBSD QuickJS Patch (#203)

This commit is contained in:
Nick Vatamaniuc
2024-02-12 05:28:00 -05:00
committed by GitHub
parent ae6fa8d3d2
commit 636c946531
3 changed files with 19 additions and 1 deletions

View File

@@ -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())