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

Unified Diff: libraries/nacl-mounts/test.nacl/DevTest.cc

Issue 10854174: Fixing nacl-mounts breakages. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « libraries/nacl-mounts/net/TcpSocket.h ('k') | libraries/nacl-mounts/test.nacl/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/nacl-mounts/test.nacl/DevTest.cc
===================================================================
--- libraries/nacl-mounts/test.nacl/DevTest.cc (revision 622)
+++ libraries/nacl-mounts/test.nacl/DevTest.cc (working copy)
@@ -8,7 +8,9 @@
#include <fcntl.h>
#include <sys/types.h>
+#ifdef __GLIBC__
#include <sys/select.h>
+#endif
#include <sys/stat.h>
#include <unistd.h>
@@ -32,6 +34,7 @@
EXPECT_EQ(0, read(q, reinterpret_cast<void*>(buff), 5));
}
+#ifdef __GLIBC___
TEST(DevTest, Select) {
int random = open("/dev/random", O_RDONLY);
EXPECT_GT(random, 0);
@@ -63,3 +66,4 @@
EXPECT_FALSE(FD_ISSET(random, &exceptfds));
EXPECT_FALSE(FD_ISSET(null, &exceptfds));
}
+#endif
« no previous file with comments | « libraries/nacl-mounts/net/TcpSocket.h ('k') | libraries/nacl-mounts/test.nacl/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698