summaryrefslogtreecommitdiff
path: root/astro/ephem/files/patch-compiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'astro/ephem/files/patch-compiler.c')
-rw-r--r--astro/ephem/files/patch-compiler.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/astro/ephem/files/patch-compiler.c b/astro/ephem/files/patch-compiler.c
new file mode 100644
index 000000000000..499d17e2b7d7
--- /dev/null
+++ b/astro/ephem/files/patch-compiler.c
@@ -0,0 +1,18 @@
+diff -u compiler.c.orig compiler.c
+--- compiler.c.orig Sun Jan 21 20:26:09 2007
++++ compiler.c Sun Jan 21 20:33:59 2007
+@@ -13,6 +13,14 @@
+ #include <stdlib.h>
+ #endif
+ #include "screen.h"
++#include <stdio.h>
++#include <string.h>
++
++static next_token();
++static skip_double();
++static compile(int prec);
++static execute(double *result);
++static parse_fieldname();
+
+ /* parser tokens and opcodes, as necessary */
+ #define HALT 0 /* good value for HALT since program is inited to 0 */