summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-27 14:53:55 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-23 21:47:47 +1100
commit3ba31d4efc8e8d740ee0868fcf50aa51245571a5 (patch)
tree9c89e8e727d7592a896cf16dfae9a9fe270de5c7 /lib
parentc01d445554de972b46f866e1762e76ff1d4d13f5 (diff)
downloadtalos-petitboot-3ba31d4efc8e8d740ee0868fcf50aa51245571a5.tar.gz
talos-petitboot-3ba31d4efc8e8d740ee0868fcf50aa51245571a5.zip
Include types header in talloc
Include sys/types.h in talloc.h. talloc.h uses off_t, which is defined in sys/types.h. Fixes this OpenWRT build error: ./lib/talloc/talloc.h:114: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'talloc_total_size' Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index 15a1eb6..b5fca44 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -25,6 +25,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
+#include <sys/types.h>
/* this is only needed for compatibility with the old talloc */
typedef void TALLOC_CTX;
OpenPOWER on IntegriCloud