mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix build on DragonFly
This commit is contained in:
parent
007b23d9a1
commit
79817e518d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382652
@ -1,6 +1,17 @@
|
||||
--- Source/Config.cpp.orig 2007-11-22 01:14:16.000000000 +0300
|
||||
+++ Source/Config.cpp 2008-01-28 00:13:47.000000000 +0300
|
||||
@@ -44,8 +44,10 @@
|
||||
+++ Source/Config.cpp 2015-03-27 01:33:20.608154000 +0300
|
||||
@@ -19,6 +19,10 @@
|
||||
*/
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
+#include <cstdlib>
|
||||
+#include <cstring>
|
||||
+
|
||||
+#include <limits.h>
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
@@ -44,8 +48,10 @@
|
||||
customlevels = 0;
|
||||
musictoggle = 1;
|
||||
azertykeyboard = 0;
|
||||
|
14
games/blackshadeselite/files/patch-Source_Net_Client.cpp
Normal file
14
games/blackshadeselite/files/patch-Source_Net_Client.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
--- Source/Net/Client.cpp.orig 2007-11-22 01:14:15.000000000 +0300
|
||||
+++ Source/Net/Client.cpp 2015-03-27 01:30:41.036397000 +0300
|
||||
@@ -2,10 +2,8 @@
|
||||
|
||||
#define SRV_IP "0.0.0.0"
|
||||
|
||||
-Client::Client()
|
||||
+Client::Client() : NetCommon()
|
||||
{
|
||||
- NetCommon::NetCommon();
|
||||
-
|
||||
memset((char *)&remote_sock, 0, sizeof(remote_sock));
|
||||
remote_sock.sin_family = AF_INET;
|
||||
remote_sock.sin_port = htons(port);
|
13
games/blackshadeselite/files/patch-Source_Net_Server.cpp
Normal file
13
games/blackshadeselite/files/patch-Source_Net_Server.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
--- Source/Net/Server.cpp.orig 2007-11-22 01:14:15.000000000 +0300
|
||||
+++ Source/Net/Server.cpp 2015-03-27 01:30:50.356180000 +0300
|
||||
@@ -1,9 +1,7 @@
|
||||
#include "Server.h"
|
||||
|
||||
-Server::Server()
|
||||
+Server::Server() : NetCommon()
|
||||
{
|
||||
- NetCommon::NetCommon();
|
||||
-
|
||||
memset((char *) &local_sock, 0, sizeof(local_sock));
|
||||
local_sock.sin_family = AF_INET;
|
||||
local_sock.sin_port = htons(PORT);
|
Loading…
Reference in New Issue
Block a user