OSDN Git Service

Include what we use.
authorDan Albert <danalbert@google.com>
Mon, 19 Oct 2015 22:57:14 +0000 (15:57 -0700)
committerDan Albert <danalbert@google.com>
Mon, 19 Oct 2015 22:57:14 +0000 (15:57 -0700)
libc++ used to leak unistd.h, causing ioctl and close to be leaked. It
doesn't anymore, so actually include this.

Change-Id: I510301a71ea0d9526a4862a634c7726053baa8f8

tests/tcp_nuke_addr/tcp_nuke_addr_test.cpp

index d153949..587f768 100644 (file)
@@ -1,15 +1,17 @@
-#include <stdlib.h>
 #include <arpa/inet.h>
 #include <linux/if.h>
 #include <netinet/in.h>
+#include <stdlib.h>
+#include <sys/ioctl.h>
 #include <sys/socket.h>
-
-#include "utils/RWLock.h"
+#include <unistd.h>
 
 #include <atomic>
 #include <mutex>
 #include <thread>
 
+#include "utils/RWLock.h"
+
 // Defined only in ifc_utils.c, in the kernel, and in the NDK.
 #ifndef SIOCKILLADDR
 #define SIOCKILLADDR 0x8939