AIX 3.1 support: work around include file bug; include <sys/access.h>
authorJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:19:28 +0000 (12:19 +0000)
committerJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:19:28 +0000 (12:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2230 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/kuserok.c

index dc08c7ffd1a9e0ff908074ffc91f9b339d4f38c0..e50387b32ab0533bf73b8f5f303e9e0935232e56 100644 (file)
@@ -38,6 +38,12 @@ static char rcsid_kuserok_c [] =
 #include <stdio.h>
 #include <pwd.h>
 
+#if defined(_AIX) && defined(_IBMR2)
+#include <sys/access.h>
+/* xlc has a bug with "const" */
+#define getpwnam(user) getpwnam((char *)user)
+#endif
+
 #define MAX_USERNAME 10
 
 /*