summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-ar
diff options
context:
space:
mode:
Diffstat (limited to 'math/scilab/patches/patch-ar')
-rw-r--r--math/scilab/patches/patch-ar24
1 files changed, 24 insertions, 0 deletions
diff --git a/math/scilab/patches/patch-ar b/math/scilab/patches/patch-ar
new file mode 100644
index 00000000000..c9b9961b603
--- /dev/null
+++ b/math/scilab/patches/patch-ar
@@ -0,0 +1,24 @@
+$NetBSD: patch-ar,v 1.4 2002/03/05 21:05:53 dmcmahill Exp $
+
+longs aren't always 32 bits...
+
+--- routines/sound/misc.c.orig Mon Feb 5 07:19:35 2001
++++ routines/sound/misc.c Mon Mar 4 16:43:06 2002
+@@ -12,4 +12,6 @@
+ ****************************************************************/
+
++#include <sys/types.h>
++
+ #include "st.h"
+ #include "../machine.h"
+@@ -326,5 +328,9 @@
+ {
+ union {
+- unsigned long l; /** we assume here long i s4 bytes **/
++#ifdef netbsd
++ u_int32_t l;
++#else
++ unsigned long l; /** we assume here long i s4 bytes **/
++#endif
+ float f;
+ } u;