diff options
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); |