patches against the unix squeak2.8 codebase for freebsd 4.

squeak at lisp-reader.hungry.com squeak at lisp-reader.hungry.com
Fri Aug 25 10:13:32 UTC 2000


These patches should also work for FreeBSD 3.x.

The first patch is necessary to get Squeak compiled on FreeBSD.

The latter two enable sound support.  With sound support enabled, I was
able to get squeak to play the AbstractSound stereoBach example, but got
terrible results for the speech synth examples.  I have a Creative 128.

FreeBSD doesn't have OSS by default; its /usr/include/sys/soundcard.h
defines

#define SOUND_VERSION  301
#define VOXWARE


I'm not on the mailing list, but I do read the archives.


--- src/unix/sqUnixSerial.c~	Thu Aug 24 15:30:48 2000
+++ src/unix/sqUnixSerial.c	Thu Aug 24 15:31:19 2000
@@ -82,7 +82,9 @@
 #       endif
 #       if defined(B230400)	/* missing on Digital Unix (ex DEC OSF/1) */
 	{ 230400, B230400 },
+#	if !defined(B460800)	/* missing on FreeBSD */
 	{ 460800, B460800 },
+#       endif
 #       endif
 #       if defined(B500000)	/* missing on GNU/Linux prior to 2.2 */
 	{ 500000, B500000 },

--- src/unix/configure.in~	Fri Aug 25 14:52:20 2000
+++ src/unix/configure.in	Fri Aug 25 14:52:29 2000
@@ -220,7 +220,7 @@
 
 AC_SUBST(INCS)
 
-if test -f /usr/include/sys/soundcard.h -a -c /dev/dsp; then
+if test -f /usr/include/sys/soundcard.h -a -e /dev/dsp; then
   AC_DEFINE(HAVE_OSS)
   AC_DEFINE(OSS_DEVICE, ["/dev/dsp"])
 else

--- src/unix/sqUnixSound.c~	Fri Aug 25 14:53:13 2000
+++ src/unix/sqUnixSound.c	Fri Aug 25 14:53:15 2000
@@ -72,7 +72,7 @@
 # include <sys/ioctl.h>
 # include <sys/soundcard.h>
 
-# if !defined(OPEN_SOUND_SYSTEM)
+# if !defined(OPEN_SOUND_SYSTEM) && !defined(__FreeBSD__)
 #    warning: 
 #    warning: sys/soundcard.h did not define OPEN_SOUND_SYSTEM
 #    warning: SOUND SUPPORT DISABLED





More information about the Squeak-dev mailing list