[PATCH] portability fixes for vi.c
Rich Felker
dalias at aerifal.cx
Fri May 19 01:08:06 UTC 2006
1. missing strings.h for str[n]casecmp
2. SIGIOT is not defined in any standard i can find and it seems to be
useless (alias for SIGABRT) on linux. i put it in #ifdef but it's
probably best just to remove it and cut down the size a bit.
rich
-------------- next part --------------
Index: /home/shared/src/busybox/editors/vi.c
===================================================================
--- /home/shared/src/busybox/editors/vi.c (revision 15108)
+++ /home/shared/src/busybox/editors/vi.c (working copy)
@@ -53,6 +53,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
@@ -2179,7 +2180,9 @@
signal(SIGQUIT, core_sig);
signal(SIGILL, core_sig);
signal(SIGTRAP, core_sig);
+#ifdef SIGIOT
signal(SIGIOT, core_sig);
+#endif
signal(SIGABRT, core_sig);
signal(SIGFPE, core_sig);
signal(SIGBUS, core_sig);
More information about the busybox
mailing list