umlaeute / v4l2loopback

v4l2-loopback device
GNU General Public License v2.0
3.61k stars 515 forks source link

Fix compilation issues under AOSP #531

Closed sanbrother closed 1 year ago

sanbrother commented 1 year ago

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?

umlaeute commented 1 year ago

#if defined will only ever work for macros (things that have been #defined). the __poll_t type was never defined, but always used typedef.

so the original code was broken to begin with.

thanks for fixing it.