Move PMTU header block to top of file

1206e7538b added linux/errqueue.h to
rx_user.c, but added the include in the middle of a function - which
means that the new structure is out of scope for the rest of the file,
which breaks the build on Linux.

Put the header include at the start with all of its other friends.

Cc: Alf Wachsmann <alfw@slac.stanford.edu>
Change-Id: Id932ff63b59e6cd62eda3df4f01e4eef354736ca
Reviewed-on: http://gerrit.openafs.org/748
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2009-10-28 18:24:33 +00:00 committed by Derrick Brashear
parent 21efa6394e
commit 53fc41a856

View File

@ -46,6 +46,14 @@
#define IPPORT_USERRESERVED 5000
# endif
#if defined(HAVE_LINUX_ERRQUEUE_H) && defined(ADAPT_PMTU)
#include <linux/types.h>
#include <linux/errqueue.h>
#ifndef IP_MTU
#define IP_MTU 14
#endif
#endif
#ifndef AFS_NT40_ENV
# include <sys/time.h>
#endif
@ -103,13 +111,6 @@ rxi_GetHostUDPSocket(u_int ahost, u_short port)
int pmtu=IP_PMTUDISC_DONT;
#endif
#endif
#if defined(HAVE_LINUX_ERRQUEUE_H) && defined(ADAPT_PMTU)
#include <linux/types.h>
#include <linux/errqueue.h>
#ifndef IP_MTU
#define IP_MTU 14
#endif
#endif
#if !defined(AFS_NT40_ENV)
if (ntohs(port) >= IPPORT_RESERVED && ntohs(port) < IPPORT_USERRESERVED) {