diff mbox

silo: include stddef.h in stringops.h

Message ID 1338489215-2047-1-git-send-email-aaro.koskinen@iki.fi
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Aaro Koskinen May 31, 2012, 6:33 p.m. UTC
I recompiled toolchain/glibc/everything from scratch against Linux 3.4
headers and silo won't compile anymore:

	file.c:60:5: error: 'NULL' undeclared here (not in a function)
	fs/ext2.c:401:7: error: 'NULL' undeclared (first use in this function)
	fs/isofs.c:57:45: error: 'NULL' undeclared (first use in this function)
	etc.

Fix by including stddef.h.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 include/stringops.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

David Miller May 31, 2012, 11:23 p.m. UTC | #1
From: Aaro Koskinen <aaro.koskinen@iki.fi>
Date: Thu, 31 May 2012 21:33:35 +0300

> I recompiled toolchain/glibc/everything from scratch against Linux 3.4
> headers and silo won't compile anymore:
> 
> 	file.c:60:5: error: 'NULL' undeclared here (not in a function)
> 	fs/ext2.c:401:7: error: 'NULL' undeclared (first use in this function)
> 	fs/isofs.c:57:45: error: 'NULL' undeclared (first use in this function)
> 	etc.
> 
> Fix by including stddef.h.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/stringops.h b/include/stringops.h
index 9973485..4fca34f 100644
--- a/include/stringops.h
+++ b/include/stringops.h
@@ -2,6 +2,7 @@ 
 #define __STRINGOPS_H
 
 #include <silo.h>
+#include <stddef.h>
 
 /* common */
 #ifndef __SIZE_TYPE__