Fix implicit declaration of functions. https://sourceforge.net/p/xine/mailman/message/37402884/ --- configure.orig 2023-01-07 13:29:07.000000000 -0600 +++ configure 2023-01-11 23:26:40.000000000 -0600 @@ -9641,10 +9641,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include int main (void) { -xine_open_cloexec(); +xine_open_cloexec(0,0); ; return 0; } @@ -9674,10 +9675,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include int main (void) { -xine_socket_cloexec(); +xine_socket_cloexec(0,0,0); ; return 0; } @@ -9708,11 +9710,12 @@ /* end confdefs.h. */ +#include int main (void) { -xine_list_next_value (); +xine_list_next_value(0,0); ; return 0; @@ -11425,8 +11428,8 @@ fi if test "$ac_cv_header_sys_shm_h" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5 -printf %s "checking whether shmctl IPC_RMID allowes subsequent attaches... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allows subsequent attaches" >&5 +printf %s "checking whether shmctl IPC_RMID allows subsequent attaches... " >&6; } if test "$cross_compiling" = yes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5 @@ -11435,6 +11438,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include #include #include #include @@ -12916,6 +12920,7 @@ #include #include +#include #include int main () { @@ -13029,6 +13034,7 @@ #include #include +#include #include int main () { --- src/aaui/main.c.orig 2021-12-12 13:49:29.000000000 -0600 +++ src/aaui/main.c 2021-12-17 00:36:53.000000000 -0600 @@ -27,7 +27,7 @@ * */ -#ifndef __sun +#if ! defined(__sun) && ! defined(__APPLE__) #define _XOPEN_SOURCE 500 #endif #define _BSD_SOURCE 1 --- src/xitk/main.c.orig 2021-12-12 13:49:29.000000000 -0600 +++ src/xitk/main.c 2021-12-17 00:19:19.000000000 -0600 @@ -20,7 +20,7 @@ * */ /* required for getsubopt(); the __sun test gives us strncasecmp() on solaris */ -#if !defined(__sun) && ! defined(__FreeBSD__) && ! defined(__NetBSD__) && ! defined(__DragonFly__) +#if ! defined(__sun) && ! defined(__FreeBSD__) && ! defined(__NetBSD__) && ! defined(__APPLE__) && ! defined(__DragonFly__) #define _XOPEN_SOURCE 500 #endif /* required for strncasecmp() */ --- src/xitk/network.c.orig 2021-12-12 13:49:29.000000000 -0600 +++ src/xitk/network.c 2021-12-17 00:21:32.000000000 -0600 @@ -23,7 +23,7 @@ /* required for getsubopt(); the __sun test avoids compilation problems on solaris. On FreeBSD defining this disable BSD functions to be visible and remove INADDR_NONE */ -#if ! defined (__sun__) && ! defined (__OpenBSD__) && ! defined(__FreeBSD__) && ! defined(__NetBSD__) && ! defined(__APPLE__) && ! defined (__DragonFly__) +#if ! defined(__sun) && ! defined(__OpenBSD__) && ! defined(__FreeBSD__) && ! defined(__NetBSD__) && ! defined(__APPLE__) && ! defined(__DragonFly__) #define _XOPEN_SOURCE 500 #endif /* required for strncasecmp() */ --- src/xitk/session.c.orig 2021-12-12 13:49:29.000000000 -0600 +++ src/xitk/session.c 2021-12-17 00:18:53.000000000 -0600 @@ -21,7 +21,7 @@ /* Largely inspired of xmms control socket stuff */ /* required for getsubopt(); the __sun test gives us strncasecmp() on solaris */ -#if ! defined (__sun) && ! defined (__OpenBSD__) && ! defined (__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) +#if ! defined(__sun) && ! defined(__OpenBSD__) && ! defined(__FreeBSD__) && ! defined(__NetBSD__) && ! defined(__APPLE__) && ! defined(__DragonFly__) #define _XOPEN_SOURCE 500 #endif