Avoid using entry points depending on _IOWR if there is no _IOWR (on cygwin).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22971 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -54,8 +54,10 @@ struct devdata {
|
|||||||
unsigned long param6;
|
unsigned long param6;
|
||||||
unsigned long retval;
|
unsigned long retval;
|
||||||
};
|
};
|
||||||
|
#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)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int _kafs_debug; /* this should be done in a better way */
|
int _kafs_debug; /* this should be done in a better way */
|
||||||
@@ -439,10 +441,14 @@ k_hasafs(void)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (strncmp("/dev/", env, 5) == 0) {
|
if (strncmp("/dev/", env, 5) == 0) {
|
||||||
|
#ifdef VIOC_SYSCALL_DEV
|
||||||
if (try_ioctlpath(env, VIOC_SYSCALL_DEV, MACOS_DEV_POINT) == 0)
|
if (try_ioctlpath(env, VIOC_SYSCALL_DEV, MACOS_DEV_POINT) == 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
#endif
|
||||||
|
#ifdef VIOC_SYSCALL_DEV_OPENAFS
|
||||||
if (try_ioctlpath(env,VIOC_SYSCALL_DEV_OPENAFS,MACOS_DEV_POINT) ==0)
|
if (try_ioctlpath(env,VIOC_SYSCALL_DEV_OPENAFS,MACOS_DEV_POINT) ==0)
|
||||||
goto done;
|
goto done;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user