summaryrefslogtreecommitdiff
path: root/deskutils/xrolo/files/patch-ae
blob: 7350022f2928d2e4b4342d5b3526c7284fc16cea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
*** cards.c.orig	Tue Dec  3 23:33:56 1991
--- cards.c	Sat Oct  1 20:07:14 2005
***************
*** 36,47 ****
   */
  
  
  
  #include <stdio.h>
  #include <xview/xview.h>
  #include <sys/file.h>
  #include <ctype.h>
! #if !defined(sgi)
  #include <alloca.h>
  #endif
  #include <pwd.h>
--- 36,56 ----
   */
  
  
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
+ #include <sys/param.h>
+ #endif
+ 
+ #if (defined(BSD) && (BSD >= 199306))
+ #include <stdlib.h>
+ #include <strings.h>
+ #include <errno.h>
+ #endif
  
  #include <stdio.h>
  #include <xview/xview.h>
  #include <sys/file.h>
  #include <ctype.h>
! #if !defined(sgi) && !(defined(BSD) && (BSD >= 199306))
  #include <alloca.h>
  #endif
  #include <pwd.h>
***************
*** 71,85 ****
  
  extern void		show_card (), set_slider_max ();
  
  extern char		*malloc(), *realloc (), *calloc (), *getenv();
  #if !defined(sgi)
  extern char 		*strcpy(), *strcat(), *strncpy (), *index ();
  #endif
  extern char		*sys_errlist [];
  
  extern int		errno;
  
- 
  /* --------------------------- Locals -------------------------------------- */
  
  static struct card	*dead;
--- 80,95 ----
  
  extern void		show_card (), set_slider_max ();
  
+ #if !(defined (BSD) && (BSD >= 199306))
  extern char		*malloc(), *realloc (), *calloc (), *getenv();
  #if !defined(sgi)
  extern char 		*strcpy(), *strcat(), *strncpy (), *index ();
  #endif
  extern char		*sys_errlist [];
+ #endif
  
  extern int		errno;
  
  /* --------------------------- Locals -------------------------------------- */
  
  static struct card	*dead;
***************
*** 757,763 ****
  char *s1, *s2;
  {
  	int retval;
! 	char *p1, *alloca();
  	char *p2;
  
  	if ( *s2 == '\0' && *s1 == '\0') 
--- 767,773 ----
  char *s1, *s2;
  {
  	int retval;
! 	char *p1;
  	char *p2;
  
  	if ( *s2 == '\0' && *s1 == '\0')