Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: native_client_sdk/src/libraries/nacl_io/ostermios.h

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/ostermios.h
diff --git a/native_client_sdk/src/libraries/nacl_io/ostermios.h b/native_client_sdk/src/libraries/nacl_io/ostermios.h
index 03c4b6cc6cf9c6052f9fc1d1979c1c01af1ad6e8..a03b8a79c235552b656d153489324da216b85f95 100644
--- a/native_client_sdk/src/libraries/nacl_io/ostermios.h
+++ b/native_client_sdk/src/libraries/nacl_io/ostermios.h
@@ -5,11 +5,7 @@
#ifndef LIBRARIES_NACL_IO_OSTERMIOS_H
#define LIBRARIES_NACL_IO_OSTERMIOS_H
-#if defined(__native_client__)
-
-#include <termios.h>
-
-#else
+#if defined(WIN32)
#include "sdk_util/macros.h"
@@ -37,6 +33,11 @@ int tcsetattr(int fd,int optional_actions,const struct termios *termios_p);
EXTERN_C_END
+#else
+
+#include <termios.h>
+
#endif
+
#endif /* LIBRARIES_NACL_IO_OSTERMIOS_H */

Powered by Google App Engine
This is Rietveld 408576698