[vlc-commits] compat Properly check if NativeClient

Etienne BRATEAU git at videolan.org
Thu Jul 6 17:28:11 CEST 2017


vlc | branch: master | Etienne BRATEAU <etienne.brateau at ensiie.fr> | Thu Jun 29 16:57:28 2017 +0200| [ab0d4796593b4eb6d99183c0f772a11b4c0bbddc] | committer: Jean-Baptiste Kempf

compat Properly check if NativeClient

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

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

 compat/recvmsg.c | 2 +-
 compat/sendmsg.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat/recvmsg.c b/compat/recvmsg.c
index aefeb93e9c..c037ab9888 100644
--- a/compat/recvmsg.c
+++ b/compat/recvmsg.c
@@ -83,7 +83,7 @@ ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
     return -1;
 }
 
-#elif __native_client__
+#elif defined __native_client__
 #include <errno.h>
 #include <limits.h>
 #include <stdlib.h>
diff --git a/compat/sendmsg.c b/compat/sendmsg.c
index 8a4075c505..0f42e782f8 100644
--- a/compat/sendmsg.c
+++ b/compat/sendmsg.c
@@ -73,7 +73,7 @@ ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
     return -1;
 }
 
-#elif __native_client__
+#elif defined __native_client__
 #include <errno.h>
 #include <limits.h>
 #include <stdlib.h>



More information about the vlc-commits mailing list