diff -Naur libmikmod-3.1.10.orig/drivers/drv_sun.c libmikmod-3.1.10/drivers/drv_sun.c
--- libmikmod-3.1.10.orig/drivers/drv_sun.c	2002-01-13 01:58:57.000000000 +0100
+++ libmikmod-3.1.10/drivers/drv_sun.c	2003-08-01 06:27:46.084049000 +0200
@@ -85,6 +85,12 @@
 #define SOUNDDEVICE "/dev/audio"
 #endif
 
+/* Solaris doesn't have these */
+#ifdef SOLARIS
+#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_LINEAR
+#define AUDIO_ENCODING_ULINEAR AUDIO_ENCODING_LINEAR8
+#endif
+
 /* Compatibility defines, for old *BSD or SunOS systems */
 #ifndef AUDIO_ENCODING_PCM16
 #define AUDIO_ENCODING_PCM16 AUDIO_ENCODING_LINEAR
