Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 389402 Details for
Bug 424341
games-puzzle/enigma doesn't compile with enet:1.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for enigma 1.20 to build against enet 1.3.7
enigma-1.20-enet-1.3.7.patch (text/plain), 2.23 KB, created by
Felix J. Ogris
on 2014-11-15 14:33:36 UTC
(
hide
)
Description:
patch for enigma 1.20 to build against enet 1.3.7
Filename:
MIME Type:
Creator:
Felix J. Ogris
Created:
2014-11-15 14:33:36 UTC
Size:
2.23 KB
patch
obsolete
>diff -dru enigma-1.20.orig/src/client.cc enigma-1.20/src/client.cc >--- enigma-1.20.orig/src/client.cc 2013-04-01 20:34:01.000000000 +0200 >+++ enigma-1.20/src/client.cc 2014-11-15 13:55:02.267736358 +0100 >@@ -144,6 +144,7 @@ > > m_network_host = enet_host_create (NULL, > 1 /* only allow 1 outgoing connection */, >+ 2, > 57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */, > 14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */); > >@@ -164,7 +165,7 @@ > sv_address.port = 12345; > > /* Initiate the connection, allocating the two channels 0 and 1. */ >- m_server = enet_host_connect (m_network_host, &sv_address, 2); >+ m_server = enet_host_connect (m_network_host, &sv_address, 2, 0); > > if (m_server == NULL) { > fprintf (stderr, >diff -dru enigma-1.20.orig/src/netgame.cc enigma-1.20/src/netgame.cc >--- enigma-1.20.orig/src/netgame.cc 2013-04-01 20:34:32.000000000 +0200 >+++ enigma-1.20/src/netgame.cc 2014-11-15 13:56:30.358061829 +0100 >@@ -155,7 +155,7 @@ > network_address.host = ENET_HOST_ANY; > network_address.port = 12345; > >- network_host = enet_host_create (&network_address, 1, 0, 0); >+ network_host = enet_host_create (&network_address, 1, 2, 0, 0); > if (network_host == NULL) { > fprintf (stderr, > "SV: An error occurred while trying to create an ENet server host.\n"); >@@ -240,6 +240,7 @@ > ENetHost *m_network_host; > m_network_host = enet_host_create (NULL, > 1 /* only allow 1 outgoing connection */, >+ 2, > 57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */, > 14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */); > >@@ -260,7 +261,7 @@ > > /* Initiate the connection, allocating the two channels 0 and 1. */ > int numchannels = 2; >- m_server = enet_host_connect (m_network_host, &sv_address, numchannels); >+ m_server = enet_host_connect (m_network_host, &sv_address, numchannels, 0); > > if (m_server == NULL) { > fprintf (stderr,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 424341
:
330382
|
330384
|
356376
| 389402