From: Pierre-Marc Fournier Date: Wed, 13 Jan 2010 19:50:44 +0000 (-0500) Subject: Do not use __SIZEOF_POINTER__, as it is not compatible with older gcc's X-Git-Tag: v0.1~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9389f19df977153396835ea4ca766f72548ecc74;p=ust.git Do not use __SIZEOF_POINTER__, as it is not compatible with older gcc's --- 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 */ \