]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
sbuf: fix uclibc compilation error
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 18 Dec 2017 19:52:06 +0000 (20:52 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 19 Dec 2017 20:43:43 +0000 (21:43 +0100)
Fixes build error

tvheadend-e06ffd87beff16103c47d6fa542df2374fca6fd3/src/sbuf.h:77:1:
 error: unknown type name 'ssize_t'; did you mean 'size_t'?
 ssize_t sbuf_read(sbuf_t *sb, int fd);

src/sbuf.h

index 78aa546b3b02854612ab167db70d10385e8eb837..d5aa53042aa7ea1794de4a915d3a836f1ebc06ae 100644 (file)
@@ -23,6 +23,7 @@
 #include <stddef.h>
 #include <stdio.h>
 #include <stdint.h>
+#include <unistd.h>
 
 /**
  * Simple dynamically growing buffer