Fix compilation of kafs on Hurd.
kafs now defines two ioctls, define the GNU _IOT constants. This was originally submitted to the Debian Heimdal package: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483281 Signed-Off-By: Jelmer Vernooij <jelmer@debian.org> Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hörnquist Åstrand

parent
0ef0446645
commit
fbf44ea51d
@@ -40,7 +40,12 @@ struct procdata {
|
|||||||
unsigned long param1;
|
unsigned long param1;
|
||||||
unsigned long syscall;
|
unsigned long syscall;
|
||||||
};
|
};
|
||||||
|
#ifdef __GNU__
|
||||||
|
#define _IOT_procdata _IOT(_IOTS(long), 5, 0, 0, 0, 0)
|
||||||
|
#define VIOC_SYSCALL_PROC _IOW('C', 1, struct procdata)
|
||||||
|
#else
|
||||||
#define VIOC_SYSCALL_PROC _IOW('C', 1, void *)
|
#define VIOC_SYSCALL_PROC _IOW('C', 1, void *)
|
||||||
|
#endif
|
||||||
|
|
||||||
struct devdata {
|
struct devdata {
|
||||||
unsigned long syscall;
|
unsigned long syscall;
|
||||||
@@ -52,6 +57,9 @@ struct devdata {
|
|||||||
unsigned long param6;
|
unsigned long param6;
|
||||||
unsigned long retval;
|
unsigned long retval;
|
||||||
};
|
};
|
||||||
|
#ifdef __GNU__
|
||||||
|
#define _IOT_devdata _IOT(_IOTS(long), 8, 0, 0, 0, 0)
|
||||||
|
#endif
|
||||||
#ifdef _IOWR
|
#ifdef _IOWR
|
||||||
#define VIOC_SYSCALL_DEV _IOWR('C', 2, struct devdata)
|
#define VIOC_SYSCALL_DEV _IOWR('C', 2, struct devdata)
|
||||||
#define VIOC_SYSCALL_DEV_OPENAFS _IOWR('C', 1, struct devdata)
|
#define VIOC_SYSCALL_DEV_OPENAFS _IOWR('C', 1, struct devdata)
|
||||||
|
@@ -46,6 +46,9 @@
|
|||||||
#define AFSCALL_SETPAG 21
|
#define AFSCALL_SETPAG 21
|
||||||
|
|
||||||
#ifndef _VICEIOCTL
|
#ifndef _VICEIOCTL
|
||||||
|
#ifdef __GNU__
|
||||||
|
#define _IOT_ViceIoctl _IOT(_IOTS(caddr_t), 2, _IOTS(short), 2, 0, 0)
|
||||||
|
#endif
|
||||||
#define _VICEIOCTL(id) ((unsigned int ) _IOW('V', id, struct ViceIoctl))
|
#define _VICEIOCTL(id) ((unsigned int ) _IOW('V', id, struct ViceIoctl))
|
||||||
#define _AFSCIOCTL(id) ((unsigned int ) _IOW('C', id, struct ViceIoctl))
|
#define _AFSCIOCTL(id) ((unsigned int ) _IOW('C', id, struct ViceIoctl))
|
||||||
#endif /* _VICEIOCTL */
|
#endif /* _VICEIOCTL */
|
||||||
|
Reference in New Issue
Block a user