diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-02-21 13:30:14 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-02-21 13:31:03 -0800 |
commit | 873988ad03aba810fd5abbb3810720d7a6eb5c51 (patch) | |
tree | 18145d92f834ec520009442ce647b98ce586b979 /gptcl.h | |
parent | 49e7284336793af9537a3b409efb9163ccd9df91 (diff) | |
download | gptfdisk-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -23,7 +23,11 @@ #define __GPTCL_H #include "gpt.h" +#ifdef __ANDROID__ +#include "android_popt.h" +#else #include <popt.h> +#endif using namespace std; |