Description: Patches to upstream source since 7.16
 Self-explanatory changes mostly dealing with compilation issues
 (ie. broken code, like undefined locals, missing return value, etc.)
 .
 sc (7.16-3) unstable; urgency=low
 .
   * Changed maintainer to the new email address, recursively.
   * Fixed old changelog entries' bug closing method
   * Add patches supplied by Carsten Hey
     + Stop compressing tutorial.sc file (closes: #514777)
     + Use default colors (closes: #514775)
   * Bump Standards to 3.8.4.
   * Bump dependency of debhelper.
Author: Adam Majer <adamm@zombino.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- a/abbrev.c
+++ b/abbrev.c
@@ -12,6 +12,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
+#include <curses.h>
 #include <unistd.h>
 #include <limits.h>
 #include "compat.h"
@@ -121,7 +122,7 @@ void
 del_abbr(char *abbrev)
 {
     struct abbrev *a;
-    struct abbrev *prev;
+    struct abbrev *prev=0;
 
     if (!(a = find_abbr(abbrev, strlen(abbrev), &prev))) 
 	return;
--- a/color.c
+++ b/color.c
@@ -25,6 +25,8 @@ static struct crange	*color_base;
 void
 initcolor(int colornum)
 {
+    use_default_colors();
+
     if (!colornum) {
 	int i;
 
--- a/interp.c
+++ b/interp.c
@@ -2556,9 +2556,7 @@ constant(register struct enode *e)
 	     && e->op != LASTCOL
 	     && e->op != NUMITER
 	     && e->op != FILENAME
-             && optimize
-	)
-    );
+             && optimize );
 }
 
 void
--- a/range.c
+++ b/range.c
@@ -12,6 +12,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <curses.h>
 #include <limits.h>
 #include "compat.h"
 #include "sc.h"
--- a/sc.h
+++ b/sc.h
@@ -671,6 +671,9 @@ void gotobottom(void);
 void mouseon(void);
 void mouseoff(void);
 
+void yankr(struct ent *v1, struct ent *v2);
+
+
 #if BSD42 || SYSIII
 
 #ifndef cbreak
--- a/frame.c
+++ b/frame.c
@@ -11,6 +11,8 @@
 #include <string.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
+#include <curses.h>
 #include <unistd.h>
 #include <limits.h>
 #include "compat.h"
--- a/lex.c
+++ b/lex.c
@@ -30,6 +30,7 @@
 #include <setjmp.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <math.h>
 #include <limits.h>
 #include "compat.h"
 #include "sc.h"
--- a/sort.c
+++ b/sort.c
@@ -13,6 +13,7 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <curses.h>
 #include <limits.h>
 #include "compat.h"
 #include "sc.h"
--- a/vi.c
+++ b/vi.c
@@ -11,6 +11,7 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <sys/wait.h>
 #include <limits.h>
 #if defined(REGCOMP)
 #include <regex.h>
