libcec: add patch to fix build with gcc-4.7

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-03-23 21:22:41 +01:00
parent 12d723d489
commit ba0fa233f4

View File

@ -0,0 +1,24 @@
From a7733ae4f8ef999d1b05849ac32037148fb103ef Mon Sep 17 00:00:00 2001
From: Lars Op den Kamp <lars@opdenkamp.eu>
Date: Mon, 19 Mar 2012 10:09:52 +0100
Subject: [PATCH] cec: fix gcc 4.7 compilation
---
src/lib/platform/posix/os-types.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/lib/platform/posix/os-types.h b/src/lib/platform/posix/os-types.h
index b8783b1..b89b9cc 100644
--- a/src/lib/platform/posix/os-types.h
+++ b/src/lib/platform/posix/os-types.h
@@ -32,6 +32,7 @@
*/
#define _FILE_OFFSET_BITS 64
+#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
--
1.7.5.4