Skip to content

Commit

Permalink
wrap a local modification with __wasilibc_unmodified_upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 14, 2024
1 parent 8513933 commit b115390
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-top-half/musl/src/signal/psignal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
#include <signal.h>
#include <errno.h>

#ifndef __wasilibc_unmodified_upstream
/* undef the macro to use the standard stderr instead of __stderr_FILE
* (the libc internal symbol) as this lives in a separate library,
* libwasi-emulated-signal.so. */
#undef stderr
#endif

void psignal(int sig, const char *msg)
{
Expand Down

0 comments on commit b115390

Please sign in to comment.