Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.12-50) unstable; urgency=medium
 .
   * list_order.6
Author: Camm Maguire <camm@debian.org>

---
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: https://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: 2017-06-14

--- gcl-2.6.12.orig/h/m68k-linux.h
+++ gcl-2.6.12/h/m68k-linux.h
@@ -63,7 +63,7 @@
 
 
 #define	M68K
-#define SGC
+/* #define SGC *//*FIXME:  Unknown m68k cpu in modern emulators*/
 
 #include <asm/cachectl.h>
 int cacheflush(void *,int,int,int);
--- gcl-2.6.12.orig/o/sgbc.c
+++ gcl-2.6.12/o/sgbc.c
@@ -871,7 +871,7 @@ sgc_quit(void) {
 	  f=n;
 	  n=OBJ_LINK(n);
 	}
-      SET_LINK(f,OBJNULL);
+      SET_LINK(f,n!=OBJNULL ? n : o);
       tm->tm_tail=f;
       tm->tm_nfree += tm->tm_alt_nfree;
       tm->tm_alt_nfree = 0;
