<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:
Ingo Weinhold
2008-09-03 00:39:45 +00:00
parent 9bee8e939b
commit b0b6878c97
+4 -5
View File
@@ -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