diff options
author | jistone <jistone> | 2006-01-31 23:56:40 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-01-31 23:56:40 +0000 |
commit | ea18b5569264daa83c5ad8760a6dfd92180e9b22 (patch) | |
tree | bff8e0993204b1b1487144abecef8fe4dc678f21 /translate.cxx | |
parent | 91bef257e2fa860049495965b30d4162defb4891 (diff) | |
download | systemtap-steved-ea18b5569264daa83c5ad8760a6dfd92180e9b22.tar.gz systemtap-steved-ea18b5569264daa83c5ad8760a6dfd92180e9b22.tar.xz systemtap-steved-ea18b5569264daa83c5ad8760a6dfd92180e9b22.zip |
2006-01-31 Josh Stone <joshua.i.stone@intel.com>
PR 2252
* translate.cxx (translate_pass): Fix legacy definition of
read_trylock.
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 (); |