aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-06 19:12:13 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-06 19:13:45 (GMT)
commita95865a40c39e5a9d39119ffe72724b7624077d0 (patch)
tree86bedc9d9f0c358deb6d39800ce7c406d159eb56 /lib/libdvbv5/dvb-dev-local.c
parent49010212a7f0e0643083d5f1f9b185c8cb1ea156 (diff)
libdvbv5: Fix remote read()
There were several small bugs making read() unreliable when used over a remote connection. Address them. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
-rw-r--r--lib/libdvbv5/dvb-dev-local.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index 796571d..4632991 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -16,6 +16,10 @@
* Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE_SOURCE 1
+#define _LARGEFILE64_SOURCE 1
+
#include <libudev.h>
#include <stdio.h>
#include <stdlib.h>

Privacy Policy