Put the Android security check in its own function
Bug: 9469682
Change-Id: I60253008333edd7c8f2efe63f31059dc22adda63
diff --git a/ping_common.h b/ping_common.h
index f9330aa..bc59700 100644
--- a/ping_common.h
+++ b/ping_common.h
@@ -35,6 +35,7 @@
#ifdef ANDROID
#include <linux/icmp.h>
+#include <sys/auxv.h>
#endif
#include "SNAPSHOT.h"
@@ -273,6 +274,7 @@
static inline int disable_capability_admin(void) { return modify_capability(0); };
#endif
extern void drop_capabilities(void);
+extern void android_check_security(void);
extern int send_probe(void);
extern int receive_error_msg(void);