Skip to content

Commit 6a336df

Browse files
committed
Reapply emscripten libc include changes
1 parent 9e5d54a commit 6a336df

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

system/lib/libc/musl/include/setjmp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ typedef struct __jmp_buf_tag {
2020
|| defined(_BSD_SOURCE)
2121
typedef jmp_buf sigjmp_buf;
2222
/* XXX EMSCRIPTEN: No signals support, alias sigsetjmp and siglongjmp to their non-signals counterparts. */
23-
#if __EMSCRIPTEN__
23+
#ifdef __EMSCRIPTEN__
2424
#define sigsetjmp(buf, x) setjmp((buf))
2525
#define siglongjmp(buf, val) longjmp(buf, val)
2626
#else

system/lib/libc/musl/include/unistd.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,20 +236,20 @@ pid_t gettid(void);
236236
#define _POSIX_NO_TRUNC 1
237237
#define _POSIX_RAW_SOCKETS _POSIX_VERSION
238238

239-
#ifndef __EMSCRIPTEN__
240-
#define _POSIX_REALTIME_SIGNALS _POSIX_VERSION
241-
#else
239+
#ifdef __EMSCRIPTEN__
242240
#define _POSIX_REALTIME_SIGNALS -1
241+
#else
242+
#define _POSIX_REALTIME_SIGNALS _POSIX_VERSION
243243
#endif
244244

245245
#define _POSIX_REGEXP 1
246246
#define _POSIX_SAVED_IDS 1
247247
#define _POSIX_SHELL 1
248248

249-
#ifndef __EMSCRIPTEN__
250-
#define _POSIX_SPAWN _POSIX_VERSION
251-
#else
249+
#ifdef __EMSCRIPTEN__
252250
#define _POSIX_SPAWN -1
251+
#else
252+
#define _POSIX_SPAWN _POSIX_VERSION
253253
#endif
254254

255255
#define _POSIX_VDISABLE 0

0 commit comments

Comments
 (0)