Include missing headers
diff mbox series

Message ID 20030602123438.GA13415@gondor.apana.org.au
State New, archived
Headers show
Series
  • Include missing headers
Related show

Commit Message

Herbert Xu June 2, 2003, 12:34 p.m. UTC
This patch adds two missing headers:

linux/timer.h: include linux/stddef.h for NULL
linux/in.h: include linux/socket.h for sa_family_t

Comments

YOSHIFUJI Hideaki June 2, 2003, 12:48 p.m. UTC | #1
In article <20030602123438.GA13415@gondor.apana.org.au> (at Mon, 2 Jun 2003 22:34:38 +1000), Herbert Xu <herbert@gondor.apana.org.au> says:

>  #define _LINUX_IN_H
>  
> +#include <linux/socket.h>
>  #include <linux/types.h>
>  
>  /* Standard well-defined IP protocols.  */

It is much natural to include linux/types.h before linux/socket.h.

Patch
diff mbox series

Index: include/linux/timer.h
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/include/linux/timer.h,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 timer.h
--- include/linux/timer.h	5 Nov 2001 20:42:13 -0000	1.1.1.7
+++ include/linux/timer.h	2 Jun 2003 12:31:23 -0000
@@ -3,6 +3,7 @@ 
 
 #include <linux/config.h>
 #include <linux/list.h>
+#include <linux/stddef.h>
 
 /*
  * In Linux 2.4, static timers have been removed from the kernel.
Index: include/linux/in.h
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/include/linux/in.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 in.h
--- include/linux/in.h	1 Jun 2003 07:27:00 -0000	1.1.1.3
+++ include/linux/in.h	2 Jun 2003 12:32:37 -0000
@@ -18,6 +18,7 @@ 
 #ifndef _LINUX_IN_H
 #define _LINUX_IN_H
 
+#include <linux/socket.h>
 #include <linux/types.h>
 
 /* Standard well-defined IP protocols.  */