aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2011-09-28 10:39:34 +0800
committervanilla <vanilla@FreeBSD.org>2011-09-28 10:39:34 +0800
commit44160060a5d904a735b6dcd9c6e256e60d55f39a (patch)
treed5e945ddf71db911c9df5d352e41da2b3fb5b0b7
parent736de13b0c523a2c912aaedc0835a3dbe5b03083 (diff)
downloadfreebsd-ports-gnome-44160060a5d904a735b6dcd9c6e256e60d55f39a.tar.gz
freebsd-ports-gnome-44160060a5d904a735b6dcd9c6e256e60d55f39a.tar.zst
freebsd-ports-gnome-44160060a5d904a735b6dcd9c6e256e60d55f39a.zip
Fix build error with clang.
-rw-r--r--lang/yabasic/files/patch-graphic.c29
-rw-r--r--lang/yabasic/files/patch-main.c11
2 files changed, 40 insertions, 0 deletions
diff --git a/lang/yabasic/files/patch-graphic.c b/lang/yabasic/files/patch-graphic.c
new file mode 100644
index 000000000000..3352cd364e8f
--- /dev/null
+++ b/lang/yabasic/files/patch-graphic.c
@@ -0,0 +1,29 @@
+--- graphic.c.orig 2011-09-28 10:01:08.000000000 +0800
++++ graphic.c 2011-09-28 10:01:57.000000000 +0800
+@@ -748,7 +748,7 @@ grafinit (void)
+ &visualinfo))
+ {
+ error (ERROR, "Could not get any TrueColor visual");
+- return;
++ return FALSE;
+ }
+
+ /* convert color masks in more convenient values */
+@@ -790,7 +790,7 @@ grafinit (void)
+ sprintf (string, "Could not find foreground color '%s'\n",
+ background);
+ error (ERROR, string);
+- return;
++ return FALSE;
+ }
+ forepixel =
+ rgb_to_pixel (best_match.red >> 8, best_match.green >> 8,
+@@ -806,7 +806,7 @@ grafinit (void)
+ sprintf (string, "Could not find background color '%s'\n",
+ background);
+ error (ERROR, string);
+- return;
++ return FALSE;
+ }
+ backpixel =
+ rgb_to_pixel (best_match.red >> 8, best_match.green >> 8,
diff --git a/lang/yabasic/files/patch-main.c b/lang/yabasic/files/patch-main.c
new file mode 100644
index 000000000000..eaf7224bf4ab
--- /dev/null
+++ b/lang/yabasic/files/patch-main.c
@@ -0,0 +1,11 @@
+--- main.c.orig 2011-09-28 10:00:33.000000000 +0800
++++ main.c 2011-09-28 10:00:52.000000000 +0800
+@@ -2400,7 +2400,7 @@ find_interpreter (char *name) /* find in
+ if (try[to - from - 1] != '/')
+ strcat (try, "/");
+ strcat (try, name);
+- if (f = fopen (try, "r"))
++ if ((f = fopen (try, "r")))
+ {
+ fclose (f);
+ return try;