facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.29k stars 1.02k forks source link

64bit ARM #146

Open BrianBeuken opened 3 years ago

BrianBeuken commented 3 years ago

cmake does not seem to recognise a 64bit ARM system so the make files produced won't complete a build cycle, since there is no sys/io on arch64 systems

/home/brian/RakNet/Source/FileList.cpp:24:10: fatal error: sys/io.h: No such file or directory

include <sys/io.h>

any advice on a quick cmake fix?

BrianBeuken commented 3 years ago

I have not totally confirmed this fix yet, but it seems io.h is only used in FileList,cpp file, line 24 where it is included. It can be commented out without a problem. It then compiles and links fine. Though I have not checked yet if it works. I'll confirm at a later date when I'm a bit further on in my project and I am using it in anger.