--- HandBrake-1.6.1.orig/libhb/encavcodec.c
+++ HandBrake-1.6.1/libhb/encavcodec.c
@@ -8,6 +8,7 @@
    For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
  */
 
+#include <time.h>
 #include "handbrake/handbrake.h"
 #include "handbrake/hb_dict.h"
 #include "handbrake/hbffmpeg.h"
--- HandBrake-1.6.1.orig/libhb/muxavformat.c
+++ HandBrake-1.6.1/libhb/muxavformat.c
@@ -7,6 +7,7 @@
    For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
  */
 
+#include <time.h>
 #include <ogg/ogg.h>
 #include "libavcodec/bsf.h"
 #include "libavformat/avformat.h"
--- HandBrake-1.6.1.orig/libhb/work.c
+++ HandBrake-1.6.1/libhb/work.c
@@ -7,6 +7,7 @@
    For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
  */
 
+#include <time.h>
 #include "handbrake/handbrake.h"
 #include "libavformat/avformat.h"
 #include "handbrake/decomb.h"
