- Subject: patch to get dash to build on FreeBSD
- From: Eitan Adler <eitanadlerlist@xxxxxxxxx>
- Date: Sun, 8 Nov 2009 09:33:33 +0200
mksignames.c fails to build on freeBSD.
If you apply the following patch the shell builds and based on very
limited testing the dash appears to work.
diff -urN dash-0.5.5.1/src/mksignames.c dash/src/mksignames.c
--- dash-0.5.5.1/src/mksignames.c 2009-01-14 01:37:13.000000000 +0200
+++ dash/src/mksignames.c 2009-11-08 09:27:50.000000000 +0200
@@ -34,7 +34,11 @@
*/
#define LASTSIG NSIG-1
-char *signal_names[2 * NSIG + 3];
+#if defined(__FreeBSD__)
+ char *signal_names[SIGRTMAX];
+#else
+ char *signal_names[2 * NSIG + 3];
+#endif
#define signal_names_size (sizeof(signal_names)/sizeof(signal_names[0]))
Files dash-0.5.5.1/src/mksignames.core and dash/src/mksignames.core differ
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]