Patchwork [05/16] petitboot: Include types header in talloc

login
register
mail settings
Submitter Geoff Levand
Date Feb. 28, 2009, 12:53 a.m.
Message ID <20090228005350.487378611@am.sony.com>
Download mbox | patch
Permalink /patch/23850/
State Accepted
Headers show

Comments

Geoff Levand - Feb. 28, 2009, 12:53 a.m.
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 |    1 +
 1 file changed, 1 insertion(+)

Patch

--- 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;