mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
5d6a84cebe
PR: 250592 Submitted by: swills
19 lines
413 B
C
19 lines
413 B
C
--- quickjs-libc.c.orig 2020-09-06 09:31:51 UTC
|
|
+++ quickjs-libc.c
|
|
@@ -47,8 +47,14 @@
|
|
#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())
|