summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-11-10 10:22:07 -0800
committerElliott Hughes <enh@google.com>2017-11-10 13:18:10 -0800
commitbc0c2a38d84b91842048cfeeabadf0e16caf864b (patch)
treeb02f7ad2149812eea2cb2802b7f238856b66619c /libcutils/sockets_unix.cpp
parentfcc036e6995104a6539f147f34defe7e904c418c (diff)
Move libcutils source to C++.
Just the minimial changes to get this to actually build, because otherwise we always bog down trying to rewrite everything (when the real answer is usually "stop using libcutils, it's awful"). This doesn't move a handful of files: two are basically just BSD libc source, a couple have outstanding code reviews, and one can be deleted (but I'll do that in a separate change). I'm also skipping the presubmit hooks because otherwise clang-format wants to reformat everything. I'll follow up with that... Bug: N/A Test: builds Change-Id: I06403f465b67c8e493bad466dd76b1151eed5993
Diffstat (limited to 'libcutils/sockets_unix.cpp')
-rw-r--r--libcutils/sockets_unix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcutils/sockets_unix.cpp b/libcutils/sockets_unix.cpp
index e91f358317..2849aa886e 100644
--- a/libcutils/sockets_unix.cpp
+++ b/libcutils/sockets_unix.cpp
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+#include <cutils/sockets.h>
+
#define LOG_TAG "socket-unix"
#include <stdio.h>
@@ -26,7 +28,6 @@
#include <unistd.h>
#include <cutils/android_get_control_file.h>
-#include <cutils/sockets.h>
#include <log/log.h>
#include "android_get_control_env.h"