compat Properly check if NativeClient
authorEtienne BRATEAU <etienne.brateau@ensiie.fr>
Thu, 29 Jun 2017 14:57:28 +0000 (16:57 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Jul 2017 15:27:58 +0000 (17:27 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
compat/recvmsg.c
compat/sendmsg.c

index aefeb93..c037ab9 100644 (file)
@@ -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>
index 8a4075c..0f42e78 100644 (file)
@@ -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>