[vlc-commits] vlc_fixups: define macros for getaddrinfo() on OS/2

KO Myung-Hun git at videolan.org
Mon Mar 27 08:54:38 CEST 2017


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Mon Mar 13 13:56:31 2017 +0900| [31b11415fb50f3a9030f3a497a3e236e99791e6d] | committer: Jean-Baptiste Kempf

vlc_fixups: define macros for getaddrinfo() on OS/2

This fixes compilation breakage on OS/2 caused by commit
898b9dd532a73344267d65f5edff52697a7dc29c.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31b11415fb50f3a9030f3a497a3e236e99791e6d
---

 include/vlc_fixups.h | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index eff661d..df43935 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -452,6 +452,49 @@ long nrand48 (unsigned short subi[3]);
 #ifdef __OS2__
 # undef HAVE_FORK   /* Implementation of fork() is imperfect on OS/2 */
 
+/* GAI error codes */
+# ifndef EAI_BADFLAGS
+#  define EAI_BADFLAGS -1
+# endif
+# ifndef EAI_NONAME
+#  define EAI_NONAME -2
+# endif
+# ifndef EAI_AGAIN
+#  define EAI_AGAIN -3
+# endif
+# ifndef EAI_FAIL
+#  define EAI_FAIL -4
+# endif
+# ifndef EAI_NODATA
+#  define EAI_NODATA -5
+# endif
+# ifndef EAI_FAMILY
+#  define EAI_FAMILY -6
+# endif
+# ifndef EAI_SOCKTYPE
+#  define EAI_SOCKTYPE -7
+# endif
+# ifndef EAI_SERVICE
+#  define EAI_SERVICE -8
+# endif
+# ifndef EAI_ADDRFAMILY
+#  define EAI_ADDRFAMILY -9
+# endif
+# ifndef EAI_MEMORY
+#  define EAI_MEMORY -10
+# endif
+# ifndef EAI_OVERFLOW
+#  define EAI_OVERFLOW -11
+# endif
+# ifndef EAI_SYSTEM
+#  define EAI_SYSTEM -12
+# endif
+
+# ifndef NI_MAXHOST
+#  define NI_MAXHOST 1025
+#  define NI_MAXSERV 32
+# endif
+
 struct addrinfo
 {
     int ai_flags;



More information about the vlc-commits mailing list