<sys/ioctl.h> also seems to be the standard Linux place for the
ioctl() prototype. Apparently some Linuxes discarded the <stropts.h> header which POSIX demands. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27293 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -31,15 +31,14 @@
|
||||
# elif defined(HAIKU_HOST_PLATFORM_CYGWIN)
|
||||
# include <sys/ioctl.h>
|
||||
# include <sys/stat.h>
|
||||
# elif defined(HAIKU_HOST_PLATFORM_LINUX)
|
||||
# include <linux/hdreg.h>
|
||||
# include <linux/fs.h>
|
||||
# include <sys/ioctl.h>
|
||||
# else
|
||||
// the (POSIX) correct place of definition for ioctl()
|
||||
# include <stropts.h>
|
||||
# endif
|
||||
|
||||
# if defined(HAIKU_HOST_PLATFORM_LINUX)
|
||||
# include <linux/hdreg.h>
|
||||
# include <linux/fs.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user