From 9389f19df977153396835ea4ca766f72548ecc74 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Wed, 13 Jan 2010 14:50:44 -0500 Subject: [PATCH] Do not use __SIZEOF_POINTER__, as it is not compatible with older gcc's --- include/ust/marker.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ust/marker.h b/include/ust/marker.h index d9c0e5f..577b2fb 100644 --- a/include/ust/marker.h +++ b/include/ust/marker.h @@ -32,6 +32,8 @@ #include #include +#include + //ust// struct module; //ust// struct task_struct; struct marker; @@ -113,7 +115,7 @@ struct marker { ".byte 0\n\t" /* ptype */ \ ".word 0\n\t" /* channel_id */ \ ".word 0\n\t" /* event_id */ \ - ".align " XSTR(__SIZEOF_POINTER__) "\n\t" /* alignment */ \ + ".align " XSTR(__WORDSIZE) " / 8\n\t" /* alignment */ \ _ASM_PTR "(marker_probe_cb)\n\t" /* call */ \ _ASM_PTR "(__mark_empty_function)\n\t" /* marker_probe_closure single.field1 */ \ _ASM_PTR "0\n\t" /* marker_probe_closure single.field2 */ \ -- 2.34.1