]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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>
Sat, 22 Jan 2011 21:00:28 +0000 (13:00 -0800)
commit51a17746b6eeb2f69f1f8c3466815b5c241e56f2
tree50ea5696a6c326c199a697e3ccc1c0c4695e06c5
parented7b24c1bc8b26a5c8099105a0078c4eb7181c39
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b23163f05e55128cc0dc874396a765a400a77fd5)

Change-Id: I22bad3e58896e25bae49d87dca0452e6595c7a2c
Reviewed-on: http://gerrit.openafs.org/3720
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/kopenafs/kopenafs.c