X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Fioctl.h;h=b308833ff687e057f678f1c27fd3e717c3d25dea;hb=f332c588770ede53bd4cfe7adef5da947e7562ed;hp=a4ec8a556e65cbab54169e8280efe168df448805;hpb=96ec6856f91f7f9031cfce4273c714d72cfe59ae;p=fs%2Flustre-release.git diff --git a/lustre/include/ioctl.h b/lustre/include/ioctl.h index a4ec8a5..b308833 100644 --- a/lustre/include/ioctl.h +++ b/lustre/include/ioctl.h @@ -1,5 +1,13 @@ -#ifndef _ASMI386_IOCTL_H -#define _ASMI386_IOCTL_H +#ifndef _IOWR + +/* On i386 and x86_64, _ASM_I386_IOCTL_H is defined by the kernel's ioctl.h, + * and on newer kernels this header is shared as _ASM_GENERIC_IOCTL_H. + * + * We can avoid any problems with the kernel header being included again by + * defining _ASM_I386_IOCTL_H here so that a later occurence of + * does not include the kernel's ioctl.h after this one. b=14746 */ +#define _ASM_I386_IOCTL_H +#define _ASM_GENERIC_IOCTL_H /* ioctl command encoding: 32 bits total, command in lower 16 bits, * size of the parameter structure in the lower 14 bits of the @@ -61,4 +69,5 @@ #define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) #define IOCSIZE_SHIFT (_IOC_SIZESHIFT) -#endif /* _ASMI386_IOCTL_H */ +#endif /* _IOWR */ +