summaryrefslogtreecommitdiff
path: root/time/gcal/patches
diff options
context:
space:
mode:
authoratatat <atatat>2004-09-10 03:34:29 +0000
committeratatat <atatat>2004-09-10 03:34:29 +0000
commit7fca9685c4eb0b261cc4cdae0eb4af622975d805 (patch)
treed180ea9d4b7f04fa045200fc933e23a6eb747954 /time/gcal/patches
parent1897aa6a226d01626774572dffcb3903ebb42be1 (diff)
downloadpkgsrc-7fca9685c4eb0b261cc4cdae0eb4af622975d805.tar.gz
Patch a couple of prototypes so that they more properly match the
actual function declarations. This makes finicky c compilers happier. Problem pointed out by Georg Schwarz in private email.
Diffstat (limited to 'time/gcal/patches')
-rw-r--r--time/gcal/patches/patch-aa17
-rw-r--r--time/gcal/patches/patch-ab19
2 files changed, 36 insertions, 0 deletions
diff --git a/time/gcal/patches/patch-aa b/time/gcal/patches/patch-aa
new file mode 100644
index 00000000000..bb06baebdd8
--- /dev/null
+++ b/time/gcal/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2004/09/10 03:34:29 atatat Exp $
+
+Make declared prototype match function declaration.
+
+--- src/hd-astro.h.orig 2000-06-13 21:00:01.000000000 -0400
++++ src/hd-astro.h
+@@ -79,8 +79,8 @@ equinox_solstice __P_((const double lon
+ int *day,
+ int *month,
+ int *year,
+- int hour,
+- int min));
++ const int hour,
++ const int min));
+ EXPORT double
+ delta_t __P_((const int day,
+ const int month,
diff --git a/time/gcal/patches/patch-ab b/time/gcal/patches/patch-ab
new file mode 100644
index 00000000000..316e2b46611
--- /dev/null
+++ b/time/gcal/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1 2004/09/10 03:34:29 atatat Exp $
+
+Make declared prototype match function declaration.
+
+--- src/rc-astro.h.orig 2000-06-13 21:00:01.000000000 -0400
++++ src/rc-astro.h
+@@ -81,9 +81,9 @@ gd_latitude2gc_latitude __P_((const doub
+ EXPORT double
+ sun_rise_set __P_((const Aevent_enum event,
+ const Bool is_limited,
+- int day,
+- int month,
+- int year,
++ const int day,
++ const int month,
++ const int year,
+ Coor_struct *coordinates));
+ EXPORT double
+ moon_rise_set __P_((const Aevent_enum event,