From bc5204d4e79198501608be68434106c7be119d67 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 5 Mar 2001 15:12:42 +0000 Subject: [PATCH] support-dux-51-20010305 Changes needed for OpenAFS Tru64 5.1 support --- src/afs/DUX/osi_vfsops.c | 4 ++++ src/util/snprintf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/afs/DUX/osi_vfsops.c b/src/afs/DUX/osi_vfsops.c index 7052de6a14..87342e45ed 100644 --- a/src/afs/DUX/osi_vfsops.c +++ b/src/afs/DUX/osi_vfsops.c @@ -480,8 +480,12 @@ int mp_Afs_init(void) AFS_GLOCK(); sysent[AFS_SYSCALL].sy_call = afs3_syscall; +#ifdef SY_NARG + sysent[AFS_SYSCALL].sy_info = 6; +#else sysent[AFS_SYSCALL].sy_parallel = 0; sysent[AFS_SYSCALL].sy_narg = 6; +#endif sysent[SYS_setgroups].sy_call = Afs_xsetgroups; afs_xioctl_func = afsxioctl; afs_xsetgroups_func = afsxsetgroups; diff --git a/src/util/snprintf.c b/src/util/snprintf.c index 4aa08b761f..75b85e74b5 100644 --- a/src/util/snprintf.c +++ b/src/util/snprintf.c @@ -1,7 +1,7 @@ /* snprintf.c - Formatted, length-limited print to a string */ #include -#if defined(AFS_OSF20_ENV) || defined(AFS_AIX32_ENV) +#if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV) #include #include