1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/astro/ephem/files/patch-af
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

34 lines
953 B
Plaintext

*** main.c.orig Tue Apr 15 01:07:37 1997
--- main.c Tue Apr 15 01:33:16 1997
***************
*** 16,22 ****
#include <signal.h>
#include <setjmp.h>
#include <math.h>
! #ifdef VMS
#include <stdlib.h>
#endif
#include "astro.h"
--- 16,22 ----
#include <signal.h>
#include <setjmp.h>
#include <math.h>
! #if defined(VMS) || defined(unix)
#include <stdlib.h>
#endif
#include "astro.h"
***************
*** 51,57 ****
--- 51,61 ----
static jmp_buf fpe_err_jmp; /* used to recover from SIGFPE */
static char *cfgfile; /* !0 if -c used */
+ #ifdef unix
+ static char cfgdef[] = PREFIX "/share/ephem/ephem.cfg"; /* default configuration file name */
+ #else
static char cfgdef[] = "ephem.cfg"; /* default configuration file name */
+ #endif
static Now now; /* where when and how, right now */
static double tminc; /* hrs to inc time by each loop; RTC means use clock */
static int nstep; /* steps to go before stopping */