summaryrefslogtreecommitdiffstats
path: root/print/gv/files/patch-ab
blob: 9f078ddd799c887f865ed5e936ea47baaae4ddad (plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
diff -cr gv.orig/source/FileSel.c gv/source/FileSel.c
*** gv.orig/source/FileSel.c	Mon Mar  4 00:00:00 1996
--- gv/source/FileSel.c	Tue Apr 16 19:00:11 1996
***************
*** 39,46 ****
  #ifdef VMS
  #   include <unixio.h> /* for chdir etc. */
  #else
- #   include <sys/stat.h>
  #   include <sys/types.h>
  #   include <dirent.h>
  #   include <unistd.h>
      /* Damn it, don't ever use getwd with stupid linux ###jp### */
--- 39,46 ----
  #ifdef VMS
  #   include <unixio.h> /* for chdir etc. */
  #else
  #   include <sys/types.h>
+ #   include <sys/stat.h>
  #   include <dirent.h>
  #   include <unistd.h>
      /* Damn it, don't ever use getwd with stupid linux ###jp### */
diff -cr gv.orig/source/callbacks.c gv/source/callbacks.c
*** gv.orig/source/callbacks.c	Tue Mar  5 00:00:00 1996
--- gv/source/callbacks.c	Tue Apr 16 19:04:46 1996
***************
*** 88,94 ****
  #include "note.h"
  #include "misc_private.h"
  
! #ifdef linux
  #   include <sys/stat.h>
  #   include <unistd.h>
  #endif
--- 88,95 ----
  #include "note.h"
  #include "misc_private.h"
  
! #ifndef VMS
! #   include <sys/types.h>
  #   include <sys/stat.h>
  #   include <unistd.h>
  #endif
diff -cr gv.orig/source/error.c gv/source/error.c
*** gv.orig/source/error.c	Tue Mar  5 00:00:00 1996
--- gv/source/error.c	Tue Apr 16 19:11:16 1996
***************
*** 41,66 ****
  #include INC_X11(Intrinsic.h)
  
  #include "gv.h"
! 
! #ifdef VMS
! #   ifdef __DECC
! #      include <errno.h>
! #      include <string.h>
! #      ifndef __ERRNO_MAX
! #         define __ERRNO_MAX 85
! #      endif
! #   else
! #      include <errno.h>
! #      include <perror.h>
! #      include <string.h>
! #   endif
! #else
!     extern int sys_nerr;
!     extern char *sys_errlist[];
! #   include <errno.h>
!     /* BSD 4.3 errno.h does not declare errno */
!     extern int errno;
! #endif
  
  char* 
  open_fail_error(errornumber,error_str,file_name,show)
--- 41,47 ----
  #include INC_X11(Intrinsic.h)
  
  #include "gv.h"
! #include "error.h"
  
  char* 
  open_fail_error(errornumber,error_str,file_name,show)
diff -cr gv.orig/source/error.h gv/source/error.h
*** gv.orig/source/error.h	Tue Mar  5 00:00:00 1996
--- gv/source/error.h	Tue Apr 16 19:10:25 1996
***************
*** 39,46 ****
--- 39,48 ----
  #      include <perror.h>
  #   endif
  #else
+ #ifndef CSRG_BASED
      extern int sys_nerr;
      extern char *sys_errlist[];
+ #endif
  #   include <errno.h>
      /* BSD 4.3 errno.h does not declare errno */
      extern int errno;
diff -cr gv.orig/source/paths.h gv/source/paths.h
*** gv.orig/source/paths.h	Thu Mar  7 00:00:00 1996
--- gv/source/paths.h	Tue Apr 16 18:57:01 1996
***************
*** 34,42 ****
  #   define INC_XMU(aaa) <XMU_DIRECTORY/aaa>
  #   define INC_XAW(aaa) <XAW_DIRECTORY/aaa>
  #else
! #   define INC_X11(aaa) <X11/aaa>
! #   define INC_XMU(aaa) <X11/Xmu/aaa>
! #   define INC_XAW(aaa) <X11/Xaw3d/aaa>
  #endif
  
  #endif /* _PATHS_H_ */
--- 34,42 ----
  #   define INC_XMU(aaa) <XMU_DIRECTORY/aaa>
  #   define INC_XAW(aaa) <XAW_DIRECTORY/aaa>
  #else
! #   define INC_X11(aaa) <X11/       ## aaa ## >
! #   define INC_XMU(aaa) <X11/Xmu/   ## aaa ## >
! #   define INC_XAW(aaa) <X11/Xaw3d/ ## aaa ## >
  #endif
  
  #endif /* _PATHS_H_ */
diff -cr gv.orig/source/zoom.c gv/source/zoom.c
*** gv.orig/source/zoom.c	Tue Mar  5 00:00:00 1996
--- gv/source/zoom.c	Tue Apr 16 19:13:32 1996
***************
*** 34,39 ****
--- 34,40 ----
  #ifdef VMS
  #   include <stat.h>
  #else
+ #   include <sys/types.h>
  #   include <sys/stat.h>
  #endif
  
OpenPOWER on IntegriCloud