aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Posix/ioctl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/Posix/ioctl.cc')
-rw-r--r--test/asan/TestCases/Posix/ioctl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/asan/TestCases/Posix/ioctl.cc b/test/asan/TestCases/Posix/ioctl.cc
index 6cf9fa8e3cd3..7269dfddb9b3 100644
--- a/test/asan/TestCases/Posix/ioctl.cc
+++ b/test/asan/TestCases/Posix/ioctl.cc
@@ -10,6 +10,10 @@
#include <sys/socket.h>
#include <unistd.h>
+#if defined(__sun__) && defined(__svr4__)
+#include <sys/filio.h>
+#endif
+
int main(int argc, char **argv) {
int fd = socket(AF_INET, SOCK_DGRAM, 0);