Initial import of xisp-2.5p4, a user-friendly X11 interface to pppd/chat.
[pkgsrc.git] / comms / xisp / patches / patch-ad
1 $NetBSD$
2
3 --- pcode.c.orig        Mon Oct 26 05:35:01 1998
4 +++ pcode.c     Tue Dec  1 02:54:29 1998
5 @@ -18,6 +18,13 @@
6     For author contact information, look in the README file.
7  */
8  
9 +#include <sys/param.h>
10 +
11 +#if (defined(BSD) && BSD >= 199306)
12 +#include <unistd.h>
13 +#include <stdlib.h>
14 +#endif
15 +
16  /* Password encryption/decryption data structures and routines */
17  
18  static unsigned char pkey[8] = {0x87,0xB6,0xAC,0xAF,0xC6,0xC8,0x94,0x8C},
19 @@ -62,7 +69,9 @@
20  void pencode(unsigned char *ep, unsigned char *pp)
21  {
22         int i;
23 +#if !(defined(BSD) && BSD >= 199306)
24         void setkey(), encrypt();
25 +#endif
26  
27         cupack(ukey, pkey);                             /* unpack the key */
28         setkey(ukey);                                   /* insert it in crypt's machine */
29 @@ -78,7 +87,9 @@
30  void pdecode(unsigned char *pp, unsigned char *ep)
31  {
32         int i;
33 +#if !(defined(BSD) && BSD >= 199306)
34         void setkey(), encrypt();
35 +#endif
36  
37         cupack(ukey, pkey);                             /* unpack the key */
38         setkey(ukey);                                   /* insert it in crypt's machine */