From f8a1631fc4f42bcefbd27b013e4bf8e01985e243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Fri, 2 Sep 2016 11:12:31 +0200 Subject: [PATCH] Type fixing for ARM (e.g. Raspberry Pis) --- examples/example01.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/example01.cc b/examples/example01.cc index 8a891f2..42c8514 100644 --- a/examples/example01.cc +++ b/examples/example01.cc @@ -160,7 +160,12 @@ int main(int argc, char** argv) { // Process options std::string user_id = ""; // ID of the receiving user +#ifdef __arm__ + int c; +#else char c; +#endif + while ((c = getopt(argc, argv, "u:")) != -1) { switch(c) { case 'u':