diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | translate.cxx | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-01-31 Josh Stone <joshua.i.stone@intel.com> + + PR 2252 + * translate.cxx (translate_pass): Fix legacy definition of + read_trylock. + 2006-01-30 Frank Ch. Eigler <fche@elastic.org> * main.cxx (main): Also print elapsed real time for each pass. 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 (); |