[vlc-commits] [Git][videolan/vlc][master] 3 commits: cmdline: fix compilation on OS/2

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 4 13:26:35 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
93e39f40 by KO Myung-Hun at 2022-11-04T12:52:45+00:00
cmdline: fix compilation on OS/2

-----
  CC       config/libvlccore_la-cmdline.lo
In file included from config/cmdline.c:30:
../include/vlc_charset.h:297:1: warning: 'warn_unused_result' attribute ignored [-Wattributes]
  297 | {
      | ^
config/cmdline.c: In function 'config_LoadCmdLine':
config/cmdline.c:274:14: error: implicit declaration of function 'isatty' [-Werror=implicit-function-declaration]
  274 |     color = (isatty(STDERR_FILENO));
      |              ^~~~~~
config/cmdline.c:274:21: error: 'STDERR_FILENO' undeclared (first use in this function)
  274 |     color = (isatty(STDERR_FILENO));
      |                     ^~~~~~~~~~~~~
config/cmdline.c:274:21: note: each undeclared identifier is reported only once for each function it appears in
-----

- - - - -
9dd94013 by KO Myung-Hun at 2022-11-04T12:52:45+00:00
os2: thread: fix a typo

- - - - -
c30e3123 by KO Myung-Hun at 2022-11-04T12:52:45+00:00
ytdl: fix compilation on OS/2

-----
  CC       demux/ytdl.lo
demux/ytdl.c: In function 'ytdl_popen':
demux/ytdl.c:74:31: error: 'STDERR_FILENO' undeclared (first use in this function)
   74 |     int fdv[] = { -1, fds[1], STDERR_FILENO, -1 };
      |                               ^~~~~~~~~~~~~
demux/ytdl.c:74:31: note: each undeclared identifier is reported only once for each function it appears in
-----

- - - - -


3 changed files:

- modules/demux/ytdl.c
- src/config/cmdline.c
- src/os2/thread.c


Changes:

=====================================
modules/demux/ytdl.c
=====================================
@@ -27,6 +27,7 @@
 #include <signal.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>         /* STDERR_FILENO */
 
 #include "json/json.h"
 #include <vlc_common.h>


=====================================
src/config/cmdline.c
=====================================
@@ -39,6 +39,7 @@
 #include "modules/modules.h"
 
 #include <assert.h>
+#include <unistd.h>             /* STDERR_FILENO */
 
 /**
  * Perform early scan of arguments for a small subset of simple options.


=====================================
src/os2/thread.c
=====================================
@@ -184,7 +184,7 @@ void vlc_threadvar_delete (vlc_threadvar_t *p_tls)
 {
     struct vlc_threadvar *var = *p_tls;
 
-    if (var->destr != NULL)
+    if (var->destroy != NULL)
     {
         vlc_mutex_lock(&super_mutex);
         if (var->prev != NULL)



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

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