Move include of sys/types.h in kopenafs.c
authorAntoine Verheijen <antoine@ualberta.ca>
Fri, 3 Dec 2010 07:26:24 +0000 (00:26 -0700)
committerDerrick Brashear <shadow@dementia.org>
Fri, 3 Dec 2010 19:27:54 +0000 (11:27 -0800)
commitb23163f05e55128cc0dc874396a765a400a77fd5
tree720648bf2e92d221115f235c603a668b2b3de955
parentbe770d4336c2fd7b8a83f18577ae6bb23a3f3e99
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/kopenafs/kopenafs.c