Update libutp. Fixes #5128.

This commit is contained in:
Mitchell Livingston 2012-11-18 04:04:54 +00:00
parent 6bebaee639
commit 5b7586f0fa
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,12 @@
#define PACKED_ATTRIBUTE
#endif
#ifdef __GNUC__
#define ALIGNED_ATTRIBUTE(x) __attribute__((aligned (x)))
#else
#define ALIGNED_ATTRIBUTE(x)
#endif
// Utility templates
#undef min
#undef max

View File

@ -194,7 +194,7 @@ struct PACKED_ATTRIBUTE PackedSockAddr {
snprintf(i, len - (i-s), ":%u", _port);
return s;
}
};
} ALIGNED_ATTRIBUTE(4);
struct PACKED_ATTRIBUTE RST_Info {
PackedSockAddr addr;