sys/ioctl.h always needed.

__LINUX__ no longer works.  Use linux instead.

(Logical change 1.166)
edge.strict_endians
cantab.net!aia21 2003-07-31 14:12:36 +00:00
parent 066303c4c6
commit bef4012b5e
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#ifdef HAVE_LINUX_FD_H
# include <sys/ioctl.h>
# include <linux/fd.h>
#endif
@ -40,7 +40,7 @@
#include "debug.h"
#include "device.h"
#if defined(__LINUX__) && defined(_IO) && !defined(BLKGETSIZE)
#if defined(linux) && defined(_IO) && !defined(BLKGETSIZE)
# define BLKGETSIZE _IO(0x12,96) /* Get device size in 512byte blocks. */
#endif