Skip to content

Commit 7f8a5e4

Browse files
committed
fixup!
1 parent 3584c97 commit 7f8a5e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quickjs-libc.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ typedef sig_t sighandler_t;
7373
#endif
7474
#endif /* __APPLE__ */
7575

76+
#if defined(__OpenBSD__)
77+
typedef sig_t sighandler_t;
78+
extern char **environ;
7679
#endif
7780

78-
#if !defined(_WIN32)
7981
/* enable the os.Worker API. IT relies on POSIX threads */
8082
#define USE_WORKER
81-
#endif
83+
84+
#endif /* _WIN32 */
8285

8386
#ifdef USE_WORKER
8487
#include <pthread.h>

0 commit comments

Comments
 (0)