sys/netinet/libalias: Fix symbols clashes

Update #4475
This commit is contained in:
Chris Johns 2021-08-02 18:15:35 +10:00
parent f700edc5b8
commit 5ef23a2836
8 changed files with 24 additions and 1 deletions

View File

@ -95,6 +95,9 @@ protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah)
}
/* Kernel module definition. */
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 120,

View File

@ -105,6 +105,9 @@ protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
* ITS EXACT NAME: handlers.
*/
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers [] = {
{
.pri = 666,
@ -154,4 +157,3 @@ AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah)
{
; /* Dummy. */
}

View File

@ -151,6 +151,9 @@ protohandler_in(struct libalias *la, struct ip *pip, struct alias_data *ah)
return (0);
}
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 80,

View File

@ -120,6 +120,9 @@ protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
return (0);
}
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 90,

View File

@ -131,6 +131,9 @@ protohandler2out(struct libalias *la, struct ip *pip, struct alias_data *ah)
}
/* Kernel module definition. */
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 130,

View File

@ -135,6 +135,9 @@ protohandlergreout(struct libalias *la, struct ip *pip, struct alias_data *ah)
}
/* Kernel module definition. */
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 200,

View File

@ -80,6 +80,9 @@ protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
return (0);
}
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 110,

View File

@ -164,6 +164,9 @@ protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
return (0);
}
#ifdef __rtems__
static
#endif /* __rtems__ */
struct proto_handler handlers[] = {
{
.pri = 100,