summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1993-02-23 00:47:49 +0000
committerTheodore Tso <tytso@mit.edu>1993-02-23 00:47:49 +0000
commit5b4ce48d69ab9e20eec7b6727c503652f72f6882 (patch)
treec406256eceffe7e7034072053a83c757075882ee /src
parent4ccadc338cd26ccb2434a27c2dca17166fe5739b (diff)
downloadkrb5-5b4ce48d69ab9e20eec7b6727c503652f72f6882.tar.gz
krb5-5b4ce48d69ab9e20eec7b6727c503652f72f6882.tar.xz
krb5-5b4ce48d69ab9e20eec7b6727c503652f72f6882.zip
Portability changes for unicos and sysvimp
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2495 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/ccache/file/fcc_maybe.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_maybe.c b/src/lib/krb5/ccache/file/fcc_maybe.c
index 93e51f65d7..8ecd82071b 100644
--- a/src/lib/krb5/ccache/file/fcc_maybe.c
+++ b/src/lib/krb5/ccache/file/fcc_maybe.c
@@ -31,6 +31,7 @@ static char rcsid_fcc_maybe_c[] =
#endif /* !lint & !SABER */
#include "fcc.h"
+#include <errno.h>
#include <krb5/osconf.h>
int krb5_fcc_default_format = KRB5_FCC_DEFAULT_FVNO;
@@ -46,17 +47,20 @@ int krb5_fcc_default_format = KRB5_FCC_DEFAULT_FVNO;
#include <stdio.h>
#ifdef POSIX_FILE_LOCKS
-#include <errno.h>
+#ifndef unicos61
#include <fcntl.h>
+#endif /* unicos61 */
#define SHARED_LOCK F_RDLCK
#define EXCLUSIVE_LOCK F_WRLCK
#define UNLOCK_LOCK F_UNLCK
-#else
+#else /* !POSIX_FILE_LOCKS */
+#ifndef sysvimp
#include <sys/file.h>
+#endif /* sysvimp */
#define SHARED_LOCK LOCK_SH
#define EXCLUSIVE_LOCK LOCK_EX
#define UNLOCK_LOCK LOCK_UN
-#endif
+#endif /* POSIX_FILE_LOCKS */
#define LOCK_IT 0
#define UNLOCK_IT 1