aboutsummaryrefslogtreecommitdiffstats
path: root/community/erlang/0070-hipe_x86_signal-fix.patch
blob: 728d47da552dee0bc678ac6f997ebfe55600ed9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- otp_src_18.1-orig/erts/emulator/hipe/hipe_x86_signal.c
+++ otp_src_18.1-fixed/erts/emulator/hipe/hipe_x86_signal.c
@@ -221,16 +221,15 @@
 #include <dlfcn.h>
 static int (*__next_sigaction)(int, const struct sigaction*, struct sigaction*);
 #define init_done()	(__next_sigaction != 0)
-#define __SIGACTION _sigaction
+#define __SIGACTION __sigaction
 static void do_init(void)
 {
-    __next_sigaction = dlsym(RTLD_NEXT, "_sigaction");
+    __next_sigaction = dlsym(RTLD_NEXT, "__sigaction");
     if (__next_sigaction != 0)
 	return;
     perror("dlsym");
     abort();
 }
-#define _NSIG NSIG
 #define INIT()	do { if (!init_done()) do_init(); } while (0)
 #endif	/* not glibc or darwin */