aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2011-12-21 03:10:50 +0800
committerse <se@FreeBSD.org>2011-12-21 03:10:50 +0800
commit8940d3d34484429c0a823fab3906692054b54cf6 (patch)
tree303bca2cb34038a1693cdc4ee08647f617a21d8b /astro
parent01c9f88c754f2332f85404acfaa297c7f3dac7c9 (diff)
downloadfreebsd-ports-gnome-8940d3d34484429c0a823fab3906692054b54cf6.tar.gz
freebsd-ports-gnome-8940d3d34484429c0a823fab3906692054b54cf6.tar.zst
freebsd-ports-gnome-8940d3d34484429c0a823fab3906692054b54cf6.zip
Fix compilation with clang: main() must return int not void.
Diffstat (limited to 'astro')
-rw-r--r--astro/luna/files/patch-ac12
-rw-r--r--astro/luna/files/patch-ah20
-rw-r--r--astro/stars/files/patch-aa13
3 files changed, 40 insertions, 5 deletions
diff --git a/astro/luna/files/patch-ac b/astro/luna/files/patch-ac
index 681ee9a48cf9..2936f2cd56ec 100644
--- a/astro/luna/files/patch-ac
+++ b/astro/luna/files/patch-ac
@@ -1,6 +1,12 @@
---- luna.c.orig Mon May 25 01:01:32 1992
-+++ luna.c Mon Feb 21 02:23:14 2000
-@@ -30,22 +30,38 @@
+--- luna.c.orig 1992-05-25 01:01:32.000000000 +0200
++++ luna.c 2011-12-20 19:57:51.404175556 +0100
+@@ -25,27 +25,43 @@
+ #include "luna.h"
+
+
+-void
++int
+ main(argc, argv)
int argc;
char **argv;
{
diff --git a/astro/luna/files/patch-ah b/astro/luna/files/patch-ah
new file mode 100644
index 000000000000..6467f053a898
--- /dev/null
+++ b/astro/luna/files/patch-ah
@@ -0,0 +1,20 @@
+--- luna.h~ 1992-05-25 00:48:34.000000000 +0200
++++ luna.h 2011-12-20 19:57:27.963178999 +0100
+@@ -32,7 +32,7 @@
+
+
+ #if defined(ANSI)
+- extern void main(int argc, char **argv);
++ extern int main(int argc, char **argv);
+ extern void drawluna(int aotmoon);
+ extern void usage(void);
+ extern void getoptions(int argc, char **argv,
+@@ -40,7 +40,7 @@
+ extern int getext(int year, int mon, int day);
+ extern void printextstate(int age);
+ #else
+- extern void main();
++ extern int main();
+ extern void drawluna();
+ extern void usage();
+ extern void getoptions();
diff --git a/astro/stars/files/patch-aa b/astro/stars/files/patch-aa
index a6027ebdcac2..96b2fb126efc 100644
--- a/astro/stars/files/patch-aa
+++ b/astro/stars/files/patch-aa
@@ -1,5 +1,14 @@
---- main.c.orig Wed Apr 10 06:58:49 1996
-+++ main.c Sat Aug 3 17:51:59 1996
+--- main.c.orig 1996-04-10 12:58:49.000000000 +0200
++++ main.c 2011-12-20 20:04:16.146176426 +0100
+@@ -48,7 +48,7 @@
+ void events();
+ void shutdn();
+
+-void main()
++int main()
+ {
+ setup();
+ events();
@@ -241,37 +241,37 @@
XQueryKeymap(xgh.display, keys);