patch to get dash to build on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux