Closed sanbrother closed 1 year ago
#if defined
will only ever work for macros (things that have been #define
d).
the __poll_t
type was never defined, but always used typedef
.
so the original code was broken to begin with.
thanks for fixing it.
I failed to compile under AOSP, and then I found that __poll_t is defined since kernel 4.16 So, I change one line of code, and that works.
Maybe, #if defined() only works with types like these:
define __poll_t (unsigned int)
I'm not quite sure. Would you please spend some time to check if this PR is correct?