$ git clone http://tcclient.ion.nu/tc_client.git
commit 2fdfdfb3500fcac5b980ada4759612cf68749cbd
Author: Alicia <...>
Date:   Fri Sep 16 16:45:40 2016 +0200

    bugfix: fixed compatibility code that had stopped working over time as other code changed.

diff --git a/ChangeLog b/ChangeLog
index fb184a4..474f71e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ Reorganized configure, changing many of the version comparisons for API compatib
 bugfix: brought back announcing when a cam stream ends.
 bugfix: take cflags into account when performing API tests in configure.
 bugfix: tc_client-gtk: when rearranging cameras, don't try to remove it from the parent container if the camera doesn't have one yet.
+bugfix: fixed compatibility code that had stopped working over time as other code changed.
 modbot: only use youtube-dl's 'ytsearch:' for --get-id, and only if it doesn't appear to be an ID already.
 tc_client-gtk: handle only one sendmessage event at a time, and don't send empty lines.
 tc_client-gtk: added postprocessing options for cams upon right-click, starting with brightness adjustment.
diff --git a/Makefile b/Makefile
index 4814784..da1da2e 100644
--- a/Makefile
+++ b/Makefile
@@ -127,6 +127,7 @@ utilities/gtk/camthread.gen.c: utilities/gtk/media.c
  echo 'setmode(1, O_BINARY);' >> $@
  echo 'CAM* cam=cam_open(argv[1]);' >> $@
  echo 'unsigned int delay=atoi(argv[2]);' >> $@
+ echo 'struct size camsize_out={.width=320, .height=240};' >> $@
  sed -n -e '/if(!camproc)$$/,/^  }/p' utilities/gtk/media.c | sed -e '1,3d' >> $@
  sed -n -e '/ camselect_file/,/^}/p' utilities/gtk/media.c >> $@
 tc_client-gtk-camthread: utilities/gtk/camthread.gen.o utilities/compat.o libcamera.a
diff --git a/utilities/compat.c b/utilities/compat.c
index 6e7c177..5fe6ca3 100644
--- a/utilities/compat.c
+++ b/utilities/compat.c
@@ -1,6 +1,6 @@
 /*
     Some compatibility code to work on more limited platforms
-    Copyright (C) 2015  alicia@ion.nu
+    Copyright (C) 2015-2016  alicia@ion.nu
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU Affero General Public License as published by
@@ -14,13 +14,13 @@
     You should have received a copy of the GNU Affero General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#ifdef NO_DPRINTF
-// Android and windows have no dprintf, so we make our own
 #include <stdio.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include "compat.h"
+// Android and windows have no dprintf, so we make our own
+#ifdef NO_DPRINTF
 size_t dprintf(int fd, const char* fmt, ...)
 {
   va_list va;
diff --git a/utilities/compat.h b/utilities/compat.h
index bd2b7d4..0b6c66b 100644
--- a/utilities/compat.h
+++ b/utilities/compat.h
@@ -1,6 +1,6 @@
 /*
     Some compatibility code to work on more limited platforms
-    Copyright (C) 2015  alicia@ion.nu
+    Copyright (C) 2015-2016  alicia@ion.nu
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU Affero General Public License as published by