From: Antoine Verheijen Date: Fri, 3 Dec 2010 07:26:24 +0000 (-0700) Subject: Move include of sys/types.h in kopenafs.c X-Git-Tag: upstream/1.8.0_pre1^2~4407 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b23163f05e55128cc0dc874396a765a400a77fd5;p=packages%2Fo%2Fopenafs.git Move include of sys/types.h in kopenafs.c The netinet/in.h header file requires the inclusion of sys/types.h (or some portion thereof). Most systems include it implicitly within netinet/in.h. Some, such as OpenBSD, do not. In kopenafs.c, sys/types.h is included after netinet/in.h which is fine in most cases but means that, as a result, it will not compile on OpenBSD. Moving sys/types.h before netinet/in.h solves this problem (and should cause no problems on any other system). Change-Id: Ifc3295f3eb4f0b2b4718d0b2aa6dcbb2b06da8df Reviewed-on: http://gerrit.openafs.org/3429 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/kopenafs/kopenafs.c b/src/kopenafs/kopenafs.c index 13f66b223..9d987a6f4 100644 --- a/src/kopenafs/kopenafs.c +++ b/src/kopenafs/kopenafs.c @@ -13,6 +13,7 @@ */ #include +#include #include #include #include @@ -23,7 +24,6 @@ # endif #endif #include -#include #include #include