Skip to content

Commit

Permalink
Configury: #include <asm/types.h> for --enable-fixincludes compilabil…
Browse files Browse the repository at this point in the history
…ity.

Required now that we use "BITS_PER_LONG."
  • Loading branch information
kohler committed Nov 28, 2009
1 parent a369150 commit ff568d0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config-linuxmodule.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@
#include <linux/version.h>
#ifdef __cplusplus
# include <click/cxxprotect.h>
# include <asm/types.h>
# include <linux/types.h>
# include <click/cxxunprotect.h>
#else
# include <asm/types.h>
# include <linux/types.h>
#endif
typedef ptrdiff_t intptr_t;
Expand Down
17 changes: 17 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9818,6 +9818,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/signal.h>
#include <linux/skbuff.h>
int
Expand Down Expand Up @@ -9865,6 +9866,7 @@ else
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/types.h>
void f1(long) {
}
Expand Down Expand Up @@ -9919,6 +9921,7 @@ else
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/types.h>
void f1(long long) {
}
Expand Down Expand Up @@ -9973,6 +9976,7 @@ else
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/types.h>
int
Expand Down Expand Up @@ -10030,6 +10034,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10085,6 +10090,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10140,6 +10146,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10195,6 +10202,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10250,6 +10258,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10305,6 +10314,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
int
main ()
Expand Down Expand Up @@ -10360,6 +10370,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/netdevice.h>
int
main ()
Expand Down Expand Up @@ -10402,6 +10413,7 @@ $as_echo "#define HAVE_LINUX_POLLING 1" >>confdefs.h
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <net/dst.h>
"
if test "x$ac_cv_have_decl_skb_dst_drop" = x""yes; then :
Expand Down Expand Up @@ -10434,6 +10446,7 @@ $as_echo "#define HAVE_SKB_DST_DROP 1" >>confdefs.h
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
"
if test "x$ac_cv_have_decl_skb_recycle" = x""yes; then :
Expand Down Expand Up @@ -10479,6 +10492,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/netdevice.h>
int
main ()
Expand Down Expand Up @@ -10527,6 +10541,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
"
Expand Down Expand Up @@ -10560,6 +10575,7 @@ $as_echo "#define HAVE_NET_ENABLE_TIMESTAMP 1" >>confdefs.h
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
"
Expand Down Expand Up @@ -10593,6 +10609,7 @@ $as_echo "#define HAVE_NETIF_TX_LOCK 1" >>confdefs.h
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>
#include <asm/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
"
Expand Down
3 changes: 2 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,8 @@ fixincludes.pl execution failed.
#define namespace linux_namespace
#define false linux_false
#define true linux_true
#include <linux/autoconf.h>]])
#include <linux/autoconf.h>
#include <asm/types.h>]])


AC_CACHE_CHECK([for C++-includable kernel header files], [ac_cv_cxx_aware_system],
Expand Down

0 comments on commit ff568d0

Please sign in to comment.