diff -Naur mpg123-1.25.10.old/configure.ac mpg123-1.25.10/configure.ac --- mpg123-1.25.10.old/configure.ac 2018-02-27 11:34:27.000000000 +0100 +++ mpg123-1.25.10/configure.ac 2018-10-13 19:21:42.396310921 +0200 @@ -206,7 +206,7 @@ # Enable module support in source code AC_DEFINE( USE_MODULES, 1, [Define if modules are enabled] ) # Export the module file suffix as LT_MODULE_EXT - LT_SYS_MODULE_EXT + # LT_SYS_MODULE_EXT fi AM_CONDITIONAL( [HAVE_MODULES], [test "x$modules" = xenabled] ) @@ -1217,6 +1217,20 @@ # AC_DEFINE( #fi +if test x"$ac_cv_header_sys_signal_h" = xyes; then + AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction ) + if test x"$ac_cv_func_sigemptyset" = xno || + test x"$ac_cv_func_sigaddset" = xno || + test x"$ac_cv_func_sigprocmask" = xno || + test x"$ac_cv_func_sigaction" = xno; then + AC_DEFINE(DONT_CATCH_SIGNALS, 1, [ Signal handling is not supported on this platform ]) + fi +else + AC_DEFINE(DONT_CATCH_SIGNALS, 1, [ Signal handling is not supported on this platform ]) +fi + +AC_CHECK_FUNCS( sleep, [ have_sleep=yes ], [ have_sleep=no ] ) + dnl ############## Choose compiler flags and CPU # do not assume gcc here, so no flags by default diff -Naur mpg123-1.25.10.old/libmpg123.pc.in mpg123-1.25.10/libmpg123.pc.in --- mpg123-1.25.10.old/libmpg123.pc.in 2018-02-27 11:26:38.000000000 +0100 +++ mpg123-1.25.10/libmpg123.pc.in 2018-10-13 19:20:59.460217862 +0200 @@ -7,5 +7,5 @@ Description: An optimised MPEG Audio decoder Requires: Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lmpg123 +Libs: -L${libdir} -lmpg123 -lm Cflags: -I${includedir} diff -Naur mpg123-1.25.10.old/libout123.pc.in mpg123-1.25.10/libout123.pc.in --- mpg123-1.25.10.old/libout123.pc.in 2018-02-27 11:26:38.000000000 +0100 +++ mpg123-1.25.10/libout123.pc.in 2018-10-13 19:20:59.460217862 +0200 @@ -7,5 +7,5 @@ Description: A streaming audio output API derived from mpg123 Requires: Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lout123 +Libs: -L${libdir} -lout123 -lm Cflags: -I${includedir} diff -Naur mpg123-1.25.10.old/src/control_generic.c mpg123-1.25.10/src/control_generic.c --- mpg123-1.25.10.old/src/control_generic.c 2018-02-27 11:26:38.000000000 +0100 +++ mpg123-1.25.10/src/control_generic.c 2018-10-13 19:20:59.460217862 +0200 @@ -28,8 +28,10 @@ #include #if !defined (WIN32) || defined (__CYGWIN__) #include +#ifdef NETWORK #include #endif +#endif #include #include @@ -311,8 +313,11 @@ outstream = stderr; else outstream = stdout; - -#ifndef WIN32 + +#if 1 + fprintf(outstream, "The control interface is not supported on this platform\n"); + return 0; +#elif !defined(WIN32) setlinebuf(outstream); #else /* perhaps just use setvbuf as it's C89 */ /* diff -Naur mpg123-1.25.10.old/src/mpg123.c mpg123-1.25.10/src/mpg123.c --- mpg123-1.25.10.old/src/mpg123.c 2018-02-27 11:26:38.000000000 +0100 +++ mpg123-1.25.10/src/mpg123.c 2018-10-13 19:20:59.460217862 +0200 @@ -1239,6 +1239,8 @@ if(param.verbose > 2) fprintf(stderr, "Note: pausing %i seconds before next track.\n", param.delay); #ifdef WIN32 Sleep(param.delay*1000); +#elif !defined(HAVE_SLEEP) + fprintf(stderr, "sleep not supported on this platform\n"); #else sleep(param.delay); #endif