freebsd-ports/astro/ephem/files/patch-ae
Satoshi Asami 7a50961592 An interactive terminal-based ephemeris program. The source tarball is
in LOCAL_PORTS because those out on the 'net can't agree on the right
size and include DOS executables and such.

PR:		3407
Submitted by:	Slaven Rezic <eserte@cs.tu-berlin.de>
1997-06-03 09:14:13 +00:00

37 lines
664 B
Plaintext

*** 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