Hi, could I get this pushed to trunk and the 4.3 branch? Fixes a build
break in libavformat/ip.c (implicit declaration of function
'getaddrinfo') and also need the prototype.
Thanks,
Dave
From f9fbdaaf6cdb6f886cbdf31c1983e452567cd857 Mon Sep 17 00:00:00 2001
From: Dave Yeo <daveryeo@telus.net>
Date: Tue, 9 Jun 2020 22:51:53 -0700
Subject: [PATCH] OS/2:Support linking against libcx
Libcx contains extensions to libc such as getaddrinfo(), mmap() and poll(). While recommended to link against, it is optional
Signed-off-by: Dave Yeo <daveryeo@telus.net>
---
configure | 1 +
libavformat/os_support.h | 3 +++
2 files changed, 4 insertions(+)
diff --git a/configure b/configure
index 8569a60bf8..24ad990b52 100755
--- a/configure
+++ b/configure
@@ -5997,6 +5997,7 @@ if ! disabled network; then
check_func inet_aton $network_extralibs
check_type netdb.h "struct addrinfo"
+ check_type libcx/net.h "struct addrinfo"
check_type netinet/in.h "struct group_source_req" -D_BSD_SOURCE
check_type netinet/in.h "struct ip_mreq_source" -D_BSD_SOURCE
check_type netinet/in.h "struct ipv6_mreq" -D_DARWIN_C_SOURCE
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 5e6b32d2dc..1904fc8d5d 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -56,6 +56,9 @@
# define fstat(f,s) _fstati64((f), (s))
#endif /* defined(_WIN32) */
+#if defined (__OS2__) && defined (HAVE_GETADDRINFO)
+#include <libcx/net.h>
+#endif
#ifdef __ANDROID__
# if HAVE_UNISTD_H
--
2.11.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".