Fix XCode wesnothd build

This commit is contained in:
Celtic Minstrel 2016-09-13 13:14:11 -04:00
parent 1c90221527
commit 404c6ca754
2 changed files with 15 additions and 2 deletions

View file

@ -480,6 +480,7 @@
91B622221B76C0F400B00E0F /* libboost_regex-mt.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4EF0D5313AD4E35003C701D /* libboost_regex-mt.dylib */; };
91B622231B76C0F400B00E0F /* libboost_system-mt.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4EF0D5413AD4E35003C701D /* libboost_system-mt.dylib */; };
91B622241B76C0F400B00E0F /* libboost_thread-mt.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4EF0D5B13AD4E6D003C701D /* libboost_thread-mt.dylib */; };
91C548D21D886AF000FE6A7B /* server_base.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 91C548D01D886AF000FE6A7B /* server_base.cpp */; };
91C554601D73F997002DB0C8 /* faction_select.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 91C5545E1D73F997002DB0C8 /* faction_select.cpp */; };
91C554611D73F997002DB0C8 /* faction_select.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 91C5545E1D73F997002DB0C8 /* faction_select.cpp */; };
91C554671D77A545002DB0C8 /* libpcre.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 91C554661D77A545002DB0C8 /* libpcre.1.dylib */; };
@ -1729,6 +1730,9 @@
91B621F51B76BCB000B00E0F /* unicode_cast.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = unicode_cast.hpp; sourceTree = "<group>"; };
91B621F61B76BCB000B00E0F /* unicode_types.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = unicode_types.hpp; sourceTree = "<group>"; };
91B621F71B76BD4600B00E0F /* multimenu.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = multimenu.hpp; sourceTree = "<group>"; };
91C548CF1D886AF000FE6A7B /* send_receive_wml_helpers.ipp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = send_receive_wml_helpers.ipp; sourceTree = "<group>"; };
91C548D01D886AF000FE6A7B /* server_base.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = server_base.cpp; sourceTree = "<group>"; };
91C548D11D886AF000FE6A7B /* server_base.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = server_base.hpp; sourceTree = "<group>"; };
91C5545E1D73F997002DB0C8 /* faction_select.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = faction_select.cpp; sourceTree = "<group>"; };
91C5545F1D73F997002DB0C8 /* faction_select.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = faction_select.hpp; sourceTree = "<group>"; };
91C554661D77A545002DB0C8 /* libpcre.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpcre.1.dylib; path = lib/libpcre.1.dylib; sourceTree = "<group>"; };
@ -4546,8 +4550,11 @@
B54AC67E0FEA9C4A006F6FBD /* room_manager.hpp */,
B5BB6B720F893E7500444FBF /* sample_user_handler.cpp */,
B5BB6B6C0F893E7500444FBF /* sample_user_handler.hpp */,
91C548CF1D886AF000FE6A7B /* send_receive_wml_helpers.ipp */,
B5BB6B710F893E7500444FBF /* server.cpp */,
B54AC67F0FEA9C4A006F6FBD /* server.hpp */,
91C548D01D886AF000FE6A7B /* server_base.cpp */,
91C548D11D886AF000FE6A7B /* server_base.hpp */,
B5BB6B6D0F893E7500444FBF /* simple_wml.cpp */,
B5BB6B700F893E7500444FBF /* simple_wml.hpp */,
B5BB6B6E0F893E7500444FBF /* user_handler.cpp */,
@ -5898,6 +5905,7 @@
B5BB6B830F893E7500444FBF /* user_handler.cpp in Sources */,
B5BB6C790F89426400444FBF /* version.cpp in Sources */,
91FBBAD61CB6AF8900470BFE /* player_connection.cpp in Sources */,
91C548D21D886AF000FE6A7B /* server_base.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View file

@ -15,9 +15,14 @@
#ifndef SEND_RECEIVE_WML_HELPERS_HPP
#define SEND_RECEIVE_WML_HELPERS_HPP
#include <sys/sendfile.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_SENDFILE
#include <sys/sendfile.h>
#endif
#include "server_base.hpp"
#include "simple_wml.hpp"
#include "filesystem.hpp"