[vlc-commits] [Git][videolan/vlc][3.0.x] vlc_fixups: include sys/socket.h on OS/2 LIBCn

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Oct 21 11:05:37 UTC 2023



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
abf5e617 by KO Myung-Hun at 2023-10-21T10:47:33+00:00
vlc_fixups: include sys/socket.h on OS/2 LIBCn

LIBCn is a fork of kLIBC, and it has socklen_t in sys/socket.h.

(cherry picked from commit 4baa00c9d71c416b97e3fe8a8f64372665eb54a1)

- - - - -


1 changed file:

- include/vlc_fixups.h


Changes:

=====================================
include/vlc_fixups.h
=====================================
@@ -589,6 +589,12 @@ struct addrinfo
     struct addrinfo *ai_next;
 };
 
+# ifdef __LIBCN__
+/* OS/2 LIBCn has inet_pton(). Because of this, socklen_t is not defined above.
+ * And OS/2 LIBCn has socklen_t. So include sys/socket.h here for socklen_t. */
+#  include <sys/socket.h>
+# endif
+
 const char *gai_strerror (int);
 
 int  getaddrinfo  (const char *node, const char *service,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/abf5e6172163bb430350b08acc641a301b391f75

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/abf5e6172163bb430350b08acc641a301b391f75
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list