xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_video.c contains the following: /* * Due to conflicts with "compiler.h", don't rely on <sys/io.h> to declare * these. */ extern int ioperm(unsigned long __from, unsigned long __num, int __turn_on); extern int iopl(int __level); sys/io.h will always define these. I see no reason for this to be in the lnx_video.c file, it seems like an ugly hack for something. Can someone explain why this is needed at all?
To expand upon my question: Can someone explain what these "conflicts" with compiler.h are, and why this is deemed the necessary solution?
Without these declarations I get some compiler warnings on x86. lnx_video.c: In function 'xf86EnableIO': lnx_video.c:561: warning: implicit declaration of function 'ioperm' lnx_video.c:561: warning: nested extern declaration of 'ioperm' lnx_video.c:561: warning: implicit declaration of function 'iopl' lnx_video.c:561: warning: nested extern declaration of 'iopl'
This bug is soooo not interesting to me anymore.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.