]> git.ozlabs.org Git - petitboot/commitdiff
Include types header in talloc
authorGeoff Levand <geoffrey.levand@am.sony.com>
Fri, 27 Feb 2009 14:53:55 +0000 (14:53 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 23 Mar 2009 10:47:47 +0000 (21:47 +1100)
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>
lib/talloc/talloc.h

index 15a1eb65d0beee4ee09af74cae5e7dc2998b5e6c..b5fca44aa227d412d28ab1ff63b9ad6a98454d94 100644 (file)
@@ -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;