Fix NetBSD driver compile error and OSS link error.

master
AliceLR 4 years ago committed by Ozkan Sezer
parent 5f227252d5
commit d9525f0161
  1. 3
      configure.ac
  2. 2
      src/sound_netbsd.c

@ -193,6 +193,9 @@ netbsd*)
AC_DEFINE(SOUND_NETBSD, 1, [ ]) AC_DEFINE(SOUND_NETBSD, 1, [ ])
AM_CONDITIONAL([SOUND_NETBSD], [true]) AM_CONDITIONAL([SOUND_NETBSD], [true])
fi fi
if test "${ac_cv_header_sys_soundcard_h}" = "yes"; then
AC_CHECK_LIB(ossaudio, _oss_ioctl)
fi
;; ;;
solaris*) solaris*)
if test "${ac_cv_header_sys_audioio_h}" = "yes"; then if test "${ac_cv_header_sys_audioio_h}" = "yes"; then

@ -101,7 +101,7 @@ static void play(void *b, int i)
while (i) { while (i) {
if ((j = write(audio_fd, b, i)) > 0) { if ((j = write(audio_fd, b, i)) > 0) {
i -= j; i -= j;
(char *)b += j; b = (char *)b + j;
} else } else
break; break;
} }

Loading…
Cancel
Save