I’m trying to compile nxusb on manjaro Linux but get the following error at compile time:
C [M] /usr/NX/share/src/nxusb/message_queue.o
/usr/NX/share/src/nxusb/message_queue.c: In function ‘message_up_ctor_urb’:
/usr/NX/share/src/nxusb/message_queue.c:283:15: error: ‘__GFP_WAIT’ undeclared (first use in this function)
if ((flags & __GFP_WAIT) && !(usb_pipein(urb->pipe) || usb_pipeisoc(urb->pipe) || in_interrupt())) {
^
/usr/NX/share/src/nxusb/message_queue.c:283:15: note: each undeclared identifier is reported only once for each function it appears in
I did some googling and came across this post about GFP_WAIT being changed, I suspect this is because i’m on kernel 4.4.5 (4.4.5-1-MANJARO specifically).
I see on that page there is a suggested solution by redirecting GFP_WAIT but I dont know how to apply it to this situation.
Is there a workaround for this available or do we have to wait for 4.4.5 to be officially supported?