[vlc-commits] logger: fix compilation on OS/2

KO Myung-Hun git at videolan.org
Mon Feb 23 17:51:24 CET 2015


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Mon Feb 23 22:27:57 2015 +0900| [5253cf2846367583947f7f829e47f06bd7fefb92] | committer: Jean-Baptiste Kempf

logger: fix compilation on OS/2

-----
  CC       logger/console.lo
logger/console.c: In function 'Open':
logger/console.c:115:5: error: implicit declaration of function 'isatty' [-Werror=implicit-function-declaration]
     if (isatty(STDERR_FILENO) && var_InheritBool(obj, "color"))
     ^
logger/console.c:115:16: error: 'STDERR_FILENO' undeclared (first use in this function)
     if (isatty(STDERR_FILENO) && var_InheritBool(obj, "color"))
                ^
logger/console.c:115:16: note: each undeclared identifier is reported only once for each function it appears in
cc1.exe: some warnings being treated as errors
-----

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

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

 modules/logger/console.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/logger/console.c b/modules/logger/console.c
index 2b877c3..45a8932 100644
--- a/modules/logger/console.c
+++ b/modules/logger/console.c
@@ -26,6 +26,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <inttypes.h>
+#include <unistd.h>         /* isatty(), STDERR_FILNO */
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>



More information about the vlc-commits mailing list