diff --git a/common/snd_sun.c b/common/snd_sun.c index fe9f8bb..79b5641 100644 --- a/common/snd_sun.c +++ b/common/snd_sun.c @@ -47,16 +47,9 @@ static int lastwrite = 0; qboolean SNDDMA_Init(void) { - int rc; - int fmt; - int tmp; - int i; - char *s; - int caps; - if (snd_inited) { printf("Sound already init'd\n"); - return; + return 0; } shm = &sn; diff --git a/configure.in b/configure.in index e255111..e6ecce3 100644 --- a/configure.in +++ b/configure.in @@ -14,7 +14,7 @@ AC_PROG_MAKE_SET dnl Checks for header files. AC_CHECK_HEADERS(unistd.h windows.h sys/ioctl.h sys/mman.h \ - sys/socket.h netinet/in.h netdb.h arpa/inet.h \ + sys/socket.h netinet/in.h netdb.h arpa/inet.h sys/filio.h \ sys/soundcard.h linux/soundcard.h machine/soundcard.h sys/audioio.h \ dsound.h mmsystem.h initguid.h mme/mmsystem.h mme/mme_public.h \ sys/asoundlib.h) diff --git a/qw_client/Makefile.in b/qw_client/Makefile.in index a74bf52..f0596cf 100644 --- a/qw_client/Makefile.in +++ b/qw_client/Makefile.in @@ -115,6 +115,7 @@ CL_ADDITIONAL_GENERAL_SRC = sys_dosa.s math.s SWREND_SRC_PLAT = d_draw.s d_draw16.s d_parta.s d_polysa.s d_scana.s \ d_spr8.s d_varsa.s r_aclipa.s r_aliasa.s \ r_drawa.s r_edgea.s r_varsa.s surf16.s surf8.s +XTRA_SND_SRC = snd_mixa.s else # Source files for non-Intel platforms SWREND_SRC_PLAT = nonintel.c @@ -146,7 +147,7 @@ ifeq ($(SND_STYLE),Windows) SND_SRC = snd_dma.c snd_win.c endif -SND_SRC += snd_mem.c snd_mix.c snd_mixa.s +SND_SRC += snd_mem.c snd_mix.c $(XTRA_SND_SRC) X11_VID_SRC = @X11_VID_SRC@ QW_X11_VID_SRC = vid_x.c diff --git a/qw_common/net_udp.c b/qw_common/net_udp.c index 42f86e0..1221765 100644 --- a/qw_common/net_udp.c +++ b/qw_common/net_udp.c @@ -46,6 +46,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef HAVE_ARPA_INET_H # include #endif +#ifdef HAVE_SYS_FILIO_H +# include +#endif #undef model_t diff --git a/uquake/Makefile.in b/uquake/Makefile.in index 11734a0..00744d2 100644 --- a/uquake/Makefile.in +++ b/uquake/Makefile.in @@ -105,6 +105,7 @@ CL_ADDITIONAL_GENERAL_SRC = sys_dosa.s math.s SWREND_SRC_PLAT = d_draw.s d_draw16.s d_parta.s d_polysa.s d_scana.s \ d_spr8.s d_varsa.s r_aclipa.s r_aliasa.s \ r_drawa.s r_edgea.s r_varsa.s surf16.s surf8.s +XTRA_SND_SRC = snd_mixa.s else # Source files for non-Intel platforms SWREND_SRC_PLAT = nonintel.c @@ -137,7 +138,7 @@ ifeq ($(SND_STYLE),Windows) SND_SRC = snd_dma.c snd_win.c endif -SND_SRC += snd_mem.c snd_mix.c snd_mixa.s +SND_SRC += snd_mem.c snd_mix.c $(XTRA_SND_SRC) # x11 vid diff --git a/uquake/net_udp.c b/uquake/net_udp.c index 5e54a7b..1c9efbf 100644 --- a/uquake/net_udp.c +++ b/uquake/net_udp.c @@ -46,6 +46,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef HAVE_ARPA_INET_H # include #endif +#ifdef HAVE_SYS_FILIO_H +# include +#endif #undef model_t