[vlc-commits] [Git][videolan/vlc][master] vlc_fixups: define INET6_ADDRSTRLEN on OS/2

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 4 12:51:20 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3431ed42 by KO Myung-Hun at 2022-11-04T12:09:41+00:00
vlc_fixups: define INET6_ADDRSTRLEN on OS/2

This fixes a compilation error on OS/2:

-----
  CC       stream_out/udp.lo
stream_out/udp.c: In function 'CreateSDP':
stream_out/udp.c:89:16: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
   89 |     char dhost[INET6_ADDRSTRLEN];
      |                ^~~~~~~~~~~~~~~~
      |                INET_ADDRSTRLEN
stream_out/udp.c:89:16: note: each undeclared identifier is reported only once for each function it appears in
stream_out/udp.c:89:10: warning: unused variable 'dhost' [-Wunused-variable]
   89 |     char dhost[INET6_ADDRSTRLEN];
      |          ^~~~~
-----

- - - - -


1 changed file:

- include/vlc_fixups.h


Changes:

=====================================
include/vlc_fixups.h
=====================================
@@ -637,6 +637,8 @@ struct sockaddr_in6
 
 # define IN6_IS_ADDR_MULTICAST(a)   (((__const uint8_t *) (a))[0] == 0xff)
 
+# define INET6_ADDRSTRLEN   46
+
 static const struct in6_addr in6addr_any =
     { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3431ed42f839e5b47abaffd951f6038b37f50430
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