summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 81f4474a89..380511d47e 100644
--- a/udevd.c
+++ b/udevd.c
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include "klibc_fixups.h"
#include <sys/sysinfo.h>
+#include <sys/stat.h>
#include "list.h"
#include "udev.h"
@@ -457,7 +458,7 @@ int main(int argc, char *argv[])
/* set signal handlers */
- act.sa_handler = sig_handler;
+ act.sa_handler = (void (*) (int))sig_handler;
sigemptyset(&act.sa_mask);
act.sa_flags = SA_RESTART;
sigaction(SIGINT, &act, NULL);