From 7e83fb306e82d0e7b5c85542acf9e0905f88a2ce Mon Sep 17 00:00:00 2001 From: osensei Date: Wed, 27 Feb 2019 19:21:17 -0300 Subject: [PATCH] Properly report ARM architecture on user agent. --- src/common/Platform_unix.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/Platform_unix.cpp b/src/common/Platform_unix.cpp index 901df4be5..3066630ae 100644 --- a/src/common/Platform_unix.cpp +++ b/src/common/Platform_unix.cpp @@ -61,6 +61,10 @@ char *Platform::createUserAgent() # if defined(__x86_64__) length += snprintf(buf + length, max - length, "x86_64) libuv/%s", uv_version_string()); +# elif defined(__aarch64__) + length += snprintf(buf + length, max - length, "aarch64) libuv/%s", uv_version_string()); +# elif defined(__arm__) + length += snprintf(buf + length, max - length, "arm) libuv/%s", uv_version_string()); # else length += snprintf(buf + length, max - length, "i686) libuv/%s", uv_version_string()); # endif