summaryrefslogtreecommitdiff
path: root/src/x86_64/init.h
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2020-09-02 11:14:45 +0200
committerDave Watson <dade.watson@gmail.com>2020-09-08 08:46:16 -0700
commitc63c2369a5e9eefb6e5fbb240edaecae8856a02e (patch)
treeff710d6b114185ca36bdde4f8f2636dacb8e917e /src/x86_64/init.h
parentf57d5c971fff9f5da504308753b38683f37255df (diff)
downloadlibunwind-c63c2369a5e9eefb6e5fbb240edaecae8856a02e.tar.gz
Use __linux__ define everywhere instead of __linux
The libunwind code base uses __linux__ already in many locations, but some others relied on __linux instead. Apparently on some older toolchain configurations, such as Ubuntu Trusty that's still used for AppImage generation sometimes, __linux is never defined - only __linux__ is. Fixes compiler warning on such platforms: ``` coredump/_UPT_get_dyn_info_list_addr.c: In function 'get_list_addr': coredump/_UPT_get_dyn_info_list_addr.c:86:3: warning: #warning Implement get_list_addr(), please. [-Wcpp] # warning Implement get_list_addr(), please. ^ ```
Diffstat (limited to 'src/x86_64/init.h')
-rw-r--r--src/x86_64/init.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_64/init.h b/src/x86_64/init.h
index a7a996f1..09a12b55 100644
--- a/src/x86_64/init.h
+++ b/src/x86_64/init.h
@@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
/* Avoid a trip to x86_64_r_uc_addr() for purely local initialisation. */
-#if defined UNW_LOCAL_ONLY && defined __linux
+#if defined UNW_LOCAL_ONLY && defined __linux__
# define REG_INIT_LOC(c, rlc, ruc) \
DWARF_LOC ((unw_word_t) &c->uc->uc_mcontext.gregs[REG_ ## ruc], 0)