On some old distros, we use sa_family_t in linux/irda.h and linux/netlink.h first, but include the header file bits/sockaddr.h later in compat.h. Then it will compile failed with error: expected specifier-qualifier-list before ‘sa_family_t’. So let's move compat.h before irda.h and netlink.h Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx> --- net/irda_setsockopt.c | 2 +- net/netlink_setsockopt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/irda_setsockopt.c b/net/irda_setsockopt.c index a5d96ec..21ff649 100644 --- a/net/irda_setsockopt.c +++ b/net/irda_setsockopt.c @@ -1,9 +1,9 @@ #include <stdlib.h> -#include <linux/irda.h> #include "net.h" #include "maps.h" // page_rand #include "compat.h" #include "trinity.h" // ARRAY_SIZE +#include <linux/irda.h> #define NR_SOL_IRDA_OPTS ARRAY_SIZE(irda_opts) static const unsigned int irda_opts[] = { diff --git a/net/netlink_setsockopt.c b/net/netlink_setsockopt.c index c6e9297..c401047 100644 --- a/net/netlink_setsockopt.c +++ b/net/netlink_setsockopt.c @@ -1,9 +1,9 @@ #include <stdlib.h> -#include <linux/netlink.h> #include "net.h" #include "maps.h" // page_rand #include "compat.h" #include "trinity.h" // ARRAY_SIZE +#include <linux/netlink.h> #define SOL_NETLINK 270 -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe trinity" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html