mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
21efa6394e
commit
53fc41a856
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user