On 06/29/2011 03:22 PM, Alexander Graf wrote:
Well, you need to make sure that it only gets included on Linux
systems and if there's ever some more compatibility wrapping around
the syscall (unlikely, but you never know), this could potentially
break.

Also, who defines SYS_eventfd? What if you're trying to build this
code on SLES10 for example, which does not have the syscall and thus
doesn't have it defined? Would compilation simply break?

No, he patched configure to use the compat header too, so detection would fail at configure time and eventfd would not be used.

Paolo

Reply via email to