aboutsummaryrefslogtreecommitdiff
path: root/astro/ephem/files/patch-ag
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-06-03 09:14:13 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-06-03 09:14:13 +0000
commit7a509615924c7b68a2eb763e0c1d0c12195097c6 (patch)
tree9fbd0279c1ccc383dcc519a1ddda5bee97930105 /astro/ephem/files/patch-ag
parentb991ef1dc23b7318a86c62cb7530faff2f4da3cd (diff)
downloadports-7a509615924c7b68a2eb763e0c1d0c12195097c6.tar.gz
ports-7a509615924c7b68a2eb763e0c1d0c12195097c6.zip
Notes
Diffstat (limited to 'astro/ephem/files/patch-ag')
-rw-r--r--astro/ephem/files/patch-ag33
1 files changed, 33 insertions, 0 deletions
diff --git a/astro/ephem/files/patch-ag b/astro/ephem/files/patch-ag
new file mode 100644
index 000000000000..c96262ff59e9
--- /dev/null
+++ b/astro/ephem/files/patch-ag
@@ -0,0 +1,33 @@
+*** objx.c.orig Tue Apr 15 01:07:37 1997
+--- objx.c Tue Apr 15 01:33:17 1997
+***************
+*** 6,12 ****
+ #include <stdio.h>
+ #include <math.h>
+ #include <ctype.h>
+! #ifdef VMS
+ #include <stdlib.h>
+ #endif
+ #include "astro.h"
+--- 6,12 ----
+ #include <stdio.h>
+ #include <math.h>
+ #include <ctype.h>
+! #if defined(VMS) || defined(unix)
+ #include <stdlib.h>
+ #endif
+ #include "astro.h"
+***************
+*** 16,22 ****
+--- 16,26 ----
+ extern char *strcat(), *strcpy(), *strncpy(), *getenv();
+
+ static char *dbfile; /* !0 if set by -d option */
++ #ifdef unix
++ static char dbfdef[] = PREFIX "/share/ephem/ephem.db"; /* default database file name */
++ #else
+ static char dbfdef[] = "ephem.db"; /* default database file name */
++ #endif
+
+ /* structures to describe objects of various types.
+ */