mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Use int (ioctl)(...) rather than int ioctl(...) so that ioctl can be defined
as a macro w/o messing things up. This is really an abuse and we will back this out as soon as the abusers have been fixed. Add a comment to this effect. With this change, the XFree86-4 port now builds.
This commit is contained in:
parent
d846883bc4
commit
c26b04727e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92988
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
int ioctl(int, unsigned long, ...);
|
||||
/*
|
||||
* use parens around the ioctl so that people can define ioctl as a macro.
|
||||
* Note: This will go away in the future, as soon as the current abusers
|
||||
* have been fixed.
|
||||
*/
|
||||
int (ioctl)(int, unsigned long, ...);
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue