From ea18b5569264daa83c5ad8760a6dfd92180e9b22 Mon Sep 17 00:00:00 2001 From: jistone Date: Tue, 31 Jan 2006 23:56:40 +0000 Subject: 2006-01-31 Josh Stone PR 2252 * translate.cxx (translate_pass): Fix legacy definition of read_trylock. --- translate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 9aa4180b..1d4ec3ba 100644 --- a/translate.cxx +++ b/translate.cxx @@ -3865,7 +3865,7 @@ translate_pass (systemtap_session& s) // XXX: old 2.6 kernel hack s.op->newline() << "#ifndef read_trylock"; - s.op->newline() << "#define read_trylock(x) (read_lock(x),1)"; + s.op->newline() << "#define read_trylock(x) ({ read_lock(x); 1; })"; s.op->newline() << "#endif"; s.up->emit_common_header (); -- cgit