summaryrefslogtreecommitdiff
path: root/astro/ephem/files/patch-ae
blob: 34eb5ed9f66bda3ed79539de868e5082ef331d09 (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
*** listing.c.orig	Tue Apr 15 01:07:37 1997
--- listing.c	Tue Apr 15 01:38:22 1997
***************
*** 12,22 ****
  
  extern char *strcpy();
  
  #ifdef VMS
  #include <perror.h>
- #include <errno.h>
  #else
  extern char *sys_errlist[];
  extern errno;
  #endif
  
--- 12,31 ----
  
  extern char *strcpy();
  
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)             
+ #include <sys/param.h>                                                
+ #endif
+ 
+ #if defined(VMS) || defined(unix)
+ #include <errno.h>
+ #endif
+ 
  #ifdef VMS
  #include <perror.h>
  #else
+ #ifndef BSD
  extern char *sys_errlist[];
+ #endif
  extern errno;
  #endif