diff -Nru cubemap-1.0.1/debian/changelog cubemap-1.0.1/debian/changelog
--- cubemap-1.0.1/debian/changelog	2013-09-30 07:51:55.000000000 +0000
+++ cubemap-1.0.1/debian/changelog	2014-02-11 23:42:29.000000000 +0000
@@ -1,3 +1,10 @@
+cubemap (1.0.1-1+rpi1) jessie-staging; urgency=medium
+
+  * Add include of limits.h to stream.cpp to fix build with newer glibc.
+    (fix taken from upstream commit 7b73b36365975a9ffdca9d48ab662cc09c42adb8)
+
+ -- Peter Michael Green <plugwash@raspbian.org>  Tue, 11 Feb 2014 18:34:26 +0000
+
 cubemap (1.0.1-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru cubemap-1.0.1/debian/patches/add-limits.h.diff cubemap-1.0.1/debian/patches/add-limits.h.diff
--- cubemap-1.0.1/debian/patches/add-limits.h.diff	1970-01-01 00:00:00.000000000 +0000
+++ cubemap-1.0.1/debian/patches/add-limits.h.diff	2014-02-11 23:43:47.000000000 +0000
@@ -0,0 +1,13 @@
+Description: Add limits.h to stream.cpp
+ Based on upstream commit 7b73b36365975a9ffdca9d48ab662cc09c42adb8
+Author: Peter Michael Green <plugwash@raspbian.org>
+
+--- cubemap-1.0.1.orig/stream.cpp
++++ cubemap-1.0.1/stream.cpp
+@@ -1,5 +1,6 @@
+ #include <assert.h>
+ #include <errno.h>
++#include <limits.h>
+ #include <netinet/in.h>
+ #include <stdio.h>
+ #include <stdlib.h>
diff -Nru cubemap-1.0.1/debian/patches/series cubemap-1.0.1/debian/patches/series
--- cubemap-1.0.1/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ cubemap-1.0.1/debian/patches/series	2014-02-11 23:42:39.000000000 +0000
@@ -0,0 +1 @@
+add-limits.h.diff