1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/lang/quickjs/files/patch-quickjs-libc.c
Yuri Victorovich 5d6a84cebe lang/quickjs: Update 2020.04.12 -> 2020.09.06
PR:		250592
Submitted by:	swills
2020-10-25 17:17:32 +00:00

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