about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/bsd_signal.c6
-rw-r--r--src/signal/signal.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/signal/bsd_signal.c b/src/signal/bsd_signal.c
deleted file mode 100644
index 0b9a6855..00000000
--- a/src/signal/bsd_signal.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <signal.h>
-
-void (*bsd_signal(int sig, void (*func)(int)))(int)
-{
-	return signal(sig, func);
-}
diff --git a/src/signal/signal.c b/src/signal/signal.c
index 08902760..07346a8a 100644
--- a/src/signal/signal.c
+++ b/src/signal/signal.c
@@ -1,6 +1,7 @@
 #include <signal.h>
 #include <stddef.h>
 #include "syscall.h"
+#include "libc.h"
 
 int __sigaction(int, const struct sigaction *, struct sigaction *);
 
@@ -11,3 +12,5 @@ void (*signal(int sig, void (*func)(int)))(int)
 		return SIG_ERR;
 	return sa.sa_handler;
 }
+
+weak_alias(signal, bsd_signal);