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.6.0.pre2^2~134 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=51a17746b6eeb2f69f1f8c3466815b5c241e56f2;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). Reviewed-on: http://gerrit.openafs.org/3429 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit b23163f05e55128cc0dc874396a765a400a77fd5) Change-Id: I22bad3e58896e25bae49d87dca0452e6595c7a2c Reviewed-on: http://gerrit.openafs.org/3720 Tested-by: BuildBot Reviewed-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