Merge from vendor branch TNF:
[pkgsrcv2.git] / x11 / kdebase / patches / patch-am
1 $NetBSD: patch-am,v 1.6 2000/01/23 00:48:09 tron Exp $
2
3 The login_cap fix committed to KDE2 source tree (jdolecek 19990128)
4
5 --- kdm/session.c.orig  Fri Aug 20 20:35:10 1999
6 +++ kdm/session.c       Sun Jan 23 01:22:47 2000
7 @@ -50,6 +50,7 @@
8  #include <pwd.h>
9  #include <grp.h>
10  #include <sys/types.h>
11 +#include <sys/param.h>
12  #ifdef AIXV3
13  # include <usersec.h>
14  #endif
15 @@ -103,7 +104,7 @@
16  char *crypt(char *key, char *salt);
17  #endif
18  
19 -#ifdef HAVE_LOGIN_CAP_H
20 +#if defined(HAVE_LOGIN_CAP_H) && !defined(__NetBSD__)
21  #include <login_cap.h>         /* BSDI-like login classes */
22  #define HAVE_SETUSERCONTEXT    /* assume we have setusercontext if we have
23                                  * the header file
24 @@ -1089,7 +1090,7 @@
25      return env;
26  }
27  
28 -#if defined(Lynx) || defined(SCO) && !defined(SCO_USA) || !defined(HAVE_CRYPT_H)
29 +#if !defined(__NetBSD__) && (defined(Lynx) || defined(SCO) && !defined(SCO_USA) || !defined(HAVE_CRYPT_H))
30  char *crypt(s1, s2)
31         char    *s1, *s2;
32  {