More ifdef protection of VIOC_SYSCALL_DEV*

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22973 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-15 13:09:05 +00:00
parent 2bfbcf0a5f
commit 32bfb9806b

View File

@@ -461,13 +461,17 @@ k_hasafs(void)
if (ret == 0) if (ret == 0)
goto done; goto done;
#ifdef VIOC_SYSCALL_DEV_OPENAFS
ret = try_ioctlpath("/dev/openafs_ioctl", ret = try_ioctlpath("/dev/openafs_ioctl",
VIOC_SYSCALL_DEV_OPENAFS, MACOS_DEV_POINT); VIOC_SYSCALL_DEV_OPENAFS, MACOS_DEV_POINT);
if (ret == 0) if (ret == 0)
goto done; goto done;
#endif
#ifdef VIOC_SYSCALL_DEV
ret = try_ioctlpath("/dev/nnpfs_ioctl", VIOC_SYSCALL_DEV, MACOS_DEV_POINT); ret = try_ioctlpath("/dev/nnpfs_ioctl", VIOC_SYSCALL_DEV, MACOS_DEV_POINT);
if (ret == 0) if (ret == 0)
goto done; goto done;
#endif
#if defined(AFS_SYSCALL) || defined(AFS_SYSCALL2) || defined(AFS_SYSCALL3) #if defined(AFS_SYSCALL) || defined(AFS_SYSCALL2) || defined(AFS_SYSCALL3)
{ {