aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-08-12 15:52:37 -0700
committerDan Albert <danalbert@google.com>2015-10-19 16:49:02 -0700
commita4fa3fce0801e1c55ea230e43de93fd0f7f16162 (patch)
treec68223661d11232568450dcc4996ad6232f3731e
parentf82c7d8f9734e9f3d7e2eedec300106c5e3618c2 (diff)
downloadgptfdisk-a4fa3fce0801e1c55ea230e43de93fd0f7f16162.tar.gz
Add missing include.
libc++ used to leak unistd.h from every headers. This is fixed in the latest version. The code that needs this is not upstream code (https://googleplex-android-review.git.corp.google.com/#/c/645357/), so no need to send upstream. Change-Id: I51111c08b4d2620a5d264e20646e6606a3f39c7e (cherry picked from commit 8fc83651c5d7c5bc7413be76f82df0b23c681313)
-rw-r--r--sgdisk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sgdisk.cc b/sgdisk.cc
index 2d89a0e..1892e2d 100644
--- a/sgdisk.cc
+++ b/sgdisk.cc
@@ -18,6 +18,7 @@
#include <errno.h>
#include "gptcl.h"
#include <fcntl.h>
+#include <unistd.h>
using namespace std;