diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index 053c18dc997a..07ae799d8bc1 100644 --- a/sys/netinet/libalias/alias.c +++ b/sys/netinet/libalias/alias.c @@ -111,7 +111,12 @@ __FBSDID("$FreeBSD$"); See HISTORY file for additional revisions. */ +#ifdef _KERNEL +#include +#else #include +#include +#endif #include #include @@ -120,10 +125,13 @@ __FBSDID("$FreeBSD$"); #include #include -#include - +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" #include "alias.h" +#endif #define NETBIOS_NS_PORT_NUMBER 137 #define NETBIOS_DGM_PORT_NUMBER 138 diff --git a/sys/netinet/libalias/alias_cuseeme.c b/sys/netinet/libalias/alias_cuseeme.c index cbacc55cad8d..a6221c514bcc 100644 --- a/sys/netinet/libalias/alias_cuseeme.c +++ b/sys/netinet/libalias/alias_cuseeme.c @@ -29,14 +29,24 @@ #include __FBSDID("$FreeBSD$"); -#include +#ifdef _KERNEL +#include +#else #include +#include +#endif + #include #include #include #include +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" +#endif /* CU-SeeMe Data Header */ struct cu_header { diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c index e25259cc68c5..ecf3d9d82902 100644 --- a/sys/netinet/libalias/alias_db.c +++ b/sys/netinet/libalias/alias_db.c @@ -142,28 +142,42 @@ __FBSDID("$FreeBSD$"); See HISTORY file for additional revisions. */ +#ifdef _KERNEL +#include +#else +#include +#endif -/* System include files */ -#include -#include -#include -#include - +#include #include #include #include -#include + +#ifdef _KERNEL +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif /* BSD network include files */ #include #include #include #include -#include +#ifdef _KERNEL +#include +#include +#else #include "alias.h" #include "alias_local.h" - +#endif static LIST_HEAD(, libalias) instancehead = LIST_HEAD_INITIALIZER(instancehead); diff --git a/sys/netinet/libalias/alias_ftp.c b/sys/netinet/libalias/alias_ftp.c index b628528a0c1d..823ee33c7e79 100644 --- a/sys/netinet/libalias/alias_ftp.c +++ b/sys/netinet/libalias/alias_ftp.c @@ -69,16 +69,28 @@ __FBSDID("$FreeBSD$"); */ /* Includes */ +#ifdef _KERNEL +#include +#include +#include +#else +#include #include #include #include -#include +#endif + #include #include #include #include +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" +#endif #define FTP_CONTROL_PORT_NUMBER 21 #define MAX_MESSAGE_SIZE 128 diff --git a/sys/netinet/libalias/alias_irc.c b/sys/netinet/libalias/alias_irc.c index 66106fa35112..043678f5426d 100644 --- a/sys/netinet/libalias/alias_irc.c +++ b/sys/netinet/libalias/alias_irc.c @@ -48,17 +48,30 @@ __FBSDID("$FreeBSD$"); */ /* Includes */ +#ifdef _KERNEL +#include +#include +#include +#include +#else +#include #include #include #include -#include +#include +#endif + #include #include #include #include -#include +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" +#endif /* Local defines */ #define DBprintf(a) diff --git a/sys/netinet/libalias/alias_nbt.c b/sys/netinet/libalias/alias_nbt.c index b51abd1c5da5..dc25a3523c39 100644 --- a/sys/netinet/libalias/alias_nbt.c +++ b/sys/netinet/libalias/alias_nbt.c @@ -41,18 +41,29 @@ __FBSDID("$FreeBSD$"); */ /* Includes */ +#ifdef _KERNEL +#include +#include +#include +#else +#include #include #include #include -#include +#include +#endif + #include #include -#include #include #include #include +#ifdef _KERNEL +#include +#else #include "alias_local.h" +#endif typedef struct { struct in_addr oldaddr; diff --git a/sys/netinet/libalias/alias_old.c b/sys/netinet/libalias/alias_old.c index 089ecef55aee..e885fdc6f934 100644 --- a/sys/netinet/libalias/alias_old.c +++ b/sys/netinet/libalias/alias_old.c @@ -27,10 +27,20 @@ #include __FBSDID("$FreeBSD$"); -#include +#ifdef _KERNEL +#include +#else #include +#include +#endif + #include + +#ifdef _KERNEL +#include +#else #include "alias.h" +#endif /* * These functions are for backwards compatibility and because apps may diff --git a/sys/netinet/libalias/alias_pptp.c b/sys/netinet/libalias/alias_pptp.c index 05722b10813d..473e44b54fdf 100644 --- a/sys/netinet/libalias/alias_pptp.c +++ b/sys/netinet/libalias/alias_pptp.c @@ -66,15 +66,23 @@ __FBSDID("$FreeBSD$"); */ /* Includes */ +#ifdef _KERNEL +#include +#else #include +#include +#endif + #include #include #include #include -#include - +#ifdef _KERNEL +#include +#else #include "alias_local.h" +#endif /* * PPTP definitions diff --git a/sys/netinet/libalias/alias_proxy.c b/sys/netinet/libalias/alias_proxy.c index e0e1c059ed68..e6104dd3a2be 100644 --- a/sys/netinet/libalias/alias_proxy.c +++ b/sys/netinet/libalias/alias_proxy.c @@ -54,14 +54,23 @@ __FBSDID("$FreeBSD$"); /* System includes */ +#ifdef _KERNEL +#include +#include +#include +#include +#include +#include +#else +#include +#include #include #include #include #include #include - -#include -#include +#include +#endif /* BSD IPV4 includes */ #include @@ -69,12 +78,13 @@ __FBSDID("$FreeBSD$"); #include #include -#include - +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" /* Functions used by alias*.c */ #include "alias.h" /* Public API functions for libalias */ - - +#endif /* Data structures diff --git a/sys/netinet/libalias/alias_skinny.c b/sys/netinet/libalias/alias_skinny.c index d1e4a1469377..a7c5c7d28ee6 100644 --- a/sys/netinet/libalias/alias_skinny.c +++ b/sys/netinet/libalias/alias_skinny.c @@ -30,19 +30,28 @@ * $FreeBSD$ */ -#include -#include +#ifdef _KERNEL +#include +#else #include #include +#include +#include +#include +#include +#endif + #include #include -#include #include #include #include -#include +#ifdef _KERNEL +#include +#else #include "alias_local.h" +#endif /* * alias_skinny.c handles the translation for the Cisco Skinny Station diff --git a/sys/netinet/libalias/alias_smedia.c b/sys/netinet/libalias/alias_smedia.c index 888937c9f241..398e0ab96d1c 100644 --- a/sys/netinet/libalias/alias_smedia.c +++ b/sys/netinet/libalias/alias_smedia.c @@ -98,16 +98,27 @@ __FBSDID("$FreeBSD$"); Initial version: May, 2000 (eds) */ +#ifdef _KERNEL +#include +#include +#else +#include #include #include -#include +#endif + #include #include #include #include #include +#ifdef _KERNEL +#include +#include +#else #include "alias_local.h" +#endif #define RTSP_CONTROL_PORT_NUMBER_1 554 #define RTSP_CONTROL_PORT_NUMBER_2 7070 diff --git a/sys/netinet/libalias/alias_util.c b/sys/netinet/libalias/alias_util.c index 687168e830b7..acebc000ce69 100644 --- a/sys/netinet/libalias/alias_util.c +++ b/sys/netinet/libalias/alias_util.c @@ -50,15 +50,25 @@ then these routines will give a result of zero (useful for testing purposes); */ -#include +#ifdef _KERNEL +#include +#else #include +#include +#endif + #include #include #include #include +#ifdef _KERNEL +#include +#include +#else #include "alias.h" #include "alias_local.h" +#endif u_short LibAliasInternetChecksum(struct libalias *la, u_short * ptr, int nbytes)