diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2015-05-04 11:16:47 +0000 |
|---|---|---|
| committer | Jan Beich <jbeich@FreeBSD.org> | 2015-05-04 11:16:47 +0000 |
| commit | 4f960ddb6b67fabad3d3e633ed92b0cb441a698a (patch) | |
| tree | 9305a4cd66421b5305c301bdb0262ba735157d5f /games/assaultcube/files/patch-source_enet_unix.c | |
| parent | Finally delete files/patch-conf-cf-lex.l. (diff) | |
games/assaultcube: unbreak on DragonFly and the package cluster
- Disable PCH (precompiled header) to unbreak build with GCC in
jails for older branches and recent 11.0C kernel
- Add upstream patch for bundled libenet to unbreak build on DragonFly [1]
- Convert patch for ${BUILD_WRKSRC}/Makefile into sed(1) variant
- Pet portlint since r383894 by formatting patches with makepatch target
PR: 199912
Submitted by: lightside <lightside@gmx.com> (maintainer)
Obtained from: https://github.com/lsalzman/enet/commit/8df6e58 [1]
Notes
Notes:
svn path=/head/; revision=385392
Diffstat (limited to 'games/assaultcube/files/patch-source_enet_unix.c')
| -rw-r--r-- | games/assaultcube/files/patch-source_enet_unix.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/assaultcube/files/patch-source_enet_unix.c b/games/assaultcube/files/patch-source_enet_unix.c new file mode 100644 index 000000000000..b148e09dddb8 --- /dev/null +++ b/games/assaultcube/files/patch-source_enet_unix.c @@ -0,0 +1,20 @@ +--- source/enet/unix.c.orig 2013-10-22 18:57:22 UTC ++++ source/enet/unix.c +@@ -97,7 +97,7 @@ enet_address_set_host (ENetAddress * add + char buffer [2048]; + int errnum; + +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); +@@ -150,7 +150,7 @@ enet_address_get_host (const ENetAddress + + in.s_addr = address -> host; + +-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); |
