From 873988ad03aba810fd5abbb3810720d7a6eb5c51 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Sat, 21 Feb 2015 13:30:14 -0800 Subject: 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 --- gptcl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gptcl.h') 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 +#endif using namespace std; -- cgit v1.2.3