--- esound-0.2.41.old/Makefile.am +++ esound-0.2.41/Makefile.am @@ -125,7 +125,7 @@ LDADD = libesd.la $(AUDIOFILE_LIBS) -esd_LDADD = $(WRAP_LIB) $(LDADD) +esd_LDADD = $(WRAP_LIB) $(LDADD) -lm m4datadir = $(datadir)/aclocal m4data_DATA = esd.m4 --- esound-0.2.41.old/clients.c +++ esound-0.2.41/clients.c @@ -175,6 +175,8 @@ ESDBG_TRACE( if (esd_use_tcpip) { + unsigned long addr; + port = ntohs( incoming.sin_port ); addr = ntohl( incoming.sin_addr.s_addr ); --- esound-0.2.41.old/configure.ac +++ esound-0.2.41/configure.ac @@ -180,7 +180,7 @@ AC_MSG_CHECKING([if your platform supports esddsp]) case "$host_os" in - linux* | freebsd* | kfreebsd*-gnu | bsdi4* ) + linux* | freebsd* | kfreebsd*-gnu | bsdi4* | gnu* ) dsp_ok=yes ;; esac --- esound-0.2.41.old/esddsp.c +++ esound-0.2.41/esddsp.c @@ -68,7 +68,7 @@ #define REAL_LIBC ((void *) -1L) #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__bsdi__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__bsdi__) || defined(__GNU__) typedef unsigned long request_t; #else typedef int request_t; --- esound-0.2.41.old/esddsp.in +++ esound-0.2.41/esddsp.in @@ -106,7 +106,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ -LD_PRELOAD="libesddsp.so.@ESD_MAJOR_VERSION@ libesd.so.@ESD_MAJOR_VERSION@ $LD_PRELOAD" +LD_PRELOAD="@libdir@/esound/libesddsp.so.@ESD_MAJOR_VERSION@ libesd.so.@ESD_MAJOR_VERSION@ $LD_PRELOAD" export LD_PRELOAD # invoke the program with the args given --- esound-0.2.41.old/esdmgr.c +++ esound-0.2.41/esdmgr.c @@ -128,6 +128,7 @@ /* allocate the entire info structure, and set defaults to NULL */ esd_info_t *info = (esd_info_t *) malloc( sizeof(esd_info_t) ); + info->server = NULL; info->player_list = NULL; info->sample_list = NULL;