aboutsummaryrefslogtreecommitdiff
path: root/gptcl.h
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-02-21 13:30:14 -0800
committerJeff Sharkey <jsharkey@android.com>2015-02-21 13:31:03 -0800
commit873988ad03aba810fd5abbb3810720d7a6eb5c51 (patch)
tree18145d92f834ec520009442ce647b98ce586b979 /gptcl.h
parent49e7284336793af9537a3b409efb9163ccd9df91 (diff)
downloadgptfdisk-873988ad03aba810fd5abbb3810720d7a6eb5c51.tar.gz
Compile gptfdisk for Android.
Build sgdisk command line tool for use on Android devices. The command line parsing is currently written using popt, which has been deprecated for some time, and is replaced by GNOME's glib option parser. Instead of pulling in either of those dependencies, this change adds a stub that implements just enough of popt to get things working. Change-Id: I619f8da2e413893b4ea015a5d9e48d42637e25c8
Diffstat (limited to 'gptcl.h')
-rw-r--r--gptcl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gptcl.h b/gptcl.h
index 610ca5f..3936887 100644
--- a/gptcl.h
+++ b/gptcl.h
@@ -23,7 +23,11 @@
#define __GPTCL_H
#include "gpt.h"
+#ifdef __ANDROID__
+#include "android_popt.h"
+#else
#include <popt.h>
+#endif
using namespace std;