[vlc-commits] [Git][videolan/vlc][3.0.x] vlc_fixups.h: define INET6_ADDRSTRLEN for OS/2
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Aug 13 06:04:19 UTC 2021
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
5290585d by KO Myung-Hun at 2021-08-13T04:54:56+00:00
vlc_fixups.h: define INET6_ADDRSTRLEN for OS/2
This fixes the following compilation errors of access/rist.[ch] on OS/2:
-----
CC access/librist_plugin_la-rist.lo
In file included from access/rist.c:41:
access/rist.h: In function 'populate_cname':
access/rist.h:161:22: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
161 | char str[INET6_ADDRSTRLEN];
| ^~~~~~~~~~~~~~~~
| INET_ADDRSTRLEN
access/rist.h:161:22: note: each undeclared identifier is reported only once for each function it appears in
access/rist.h:161:18: warning: unused variable 'str' [-Wunused-variable]
161 | char str[INET6_ADDRSTRLEN];
| ^~~
access/rist.c: In function 'print_sockaddr_info_change':
access/rist.c:448:21: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
448 | char oldstr[INET6_ADDRSTRLEN];
| ^~~~~~~~~~~~~~~~
| INET_ADDRSTRLEN
access/rist.c:449:14: warning: unused variable 'newstr' [-Wunused-variable]
449 | char newstr[INET6_ADDRSTRLEN];
| ^~~~~~
access/rist.c:448:14: warning: unused variable 'oldstr' [-Wunused-variable]
448 | char oldstr[INET6_ADDRSTRLEN];
| ^~~~~~
access/rist.c: In function 'print_sockaddr_info':
access/rist.c:467:18: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
467 | char str[INET6_ADDRSTRLEN];
| ^~~~~~~~~~~~~~~~
| INET_ADDRSTRLEN
access/rist.c:467:14: warning: unused variable 'str' [-Wunused-variable]
467 | char str[INET6_ADDRSTRLEN];
| ^~~
-----
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -621,6 +621,8 @@ struct sockaddr_in6
static const struct in6_addr in6addr_any =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
+# define INET6_ADDRSTRLEN 46
+
# include <errno.h>
# ifndef EPROTO
# define EPROTO (ELAST + 1)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5290585d13e9f5585b160e1753775a87a3620cc5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5290585d13e9f5585b160e1753775a87a3620cc5
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list