diff -Naur netpanzer-0.8.3/SConstruct netpanzer-0.8.3-haiku/SConstruct
|
old
|
new
|
|
| 241 | 241 | else: |
| 242 | 242 | env.ParseConfig(env['sdlconfig'] + ' --cflags --libs') |
| 243 | 243 | env.Append( NPLIBS = [ 'SDL_mixer' ] ) |
| | 244 | env.Append( NPLIBS = [ 'network' ] ) |
| | 245 | env.Append( NPLIBS = [ 'physfs' ] ) |
| 244 | 246 | |
| 245 | 247 | # for crossmingw platform |
| 246 | 248 | if 'crossmingw' in COMMAND_LINE_TARGETS: |
diff -Naur netpanzer-0.8.3/src/Lib/Network/SocketBase.cpp netpanzer-0.8.3-haiku/src/Lib/Network/SocketBase.cpp
|
old
|
new
|
|
| 29 | 29 | #include "SocketManager.hpp" |
| 30 | 30 | #include "Util/Log.hpp" |
| 31 | 31 | |
| | 32 | #ifndef MSG_NOSIGNAL |
| | 33 | #define MSG_NOSIGNAL 0 |
| | 34 | #endif |
| | 35 | |
| 32 | 36 | namespace network |
| 33 | 37 | { |
| 34 | 38 | |
diff -Naur netpanzer-0.8.3/src/Lib/Network/SocketSet.hpp netpanzer-0.8.3-haiku/src/Lib/Network/SocketSet.hpp
|
old
|
new
|
|
| 18 | 18 | #ifndef __SOCKETSET_HPP__ |
| 19 | 19 | #define __SOCKETSET_HPP__ |
| 20 | 20 | |
| | 21 | #include <string.h> |
| | 22 | #include <wchar.h> |
| | 23 | #include <bsd_mem.h> |
| | 24 | #include <sys/select.h> |
| 21 | 25 | #include "SocketHeaders.hpp" |
| 22 | 26 | #include "SocketBase.hpp" |
| 23 | 27 | #include "Util/NoCopy.hpp" |
diff -Naur netpanzer-0.8.3/src/Lib/physfs/CMakeLists.txt netpanzer-0.8.3-haiku/src/Lib/physfs/CMakeLists.txt
|
old
|
new
|
|
| 102 | 102 | # We add this explicitly, since we don't want CMake to think this |
| 103 | 103 | # is a C++ project unless we're on BeOS. |
| 104 | 104 | SET(PHYSFS_BEOS_SRCS platform/beos.cpp) |
| 105 | | SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} be root) |
| | 105 | FIND_LIBRARY(BE_LIBRARY be) |
| | 106 | FIND_LIBRARY(ROOT_LIBRARY root) |
| | 107 | SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${BE_LIBRARY} ${ROOT_LIBRARY}) |
| 106 | 108 | ENDIF(BEOS) |
| 107 | 109 | |
| 108 | 110 | # Almost everything is "compiled" here, but things that don't apply to the |
| … |
… |
|
| 303 | 305 | CHECK_INCLUDE_FILE(readline/readline.h HAVE_READLINE_H) |
| 304 | 306 | CHECK_INCLUDE_FILE(readline/history.h HAVE_HISTORY_H) |
| 305 | 307 | IF(HAVE_READLINE_H AND HAVE_HISTORY_H) |
| 306 | | SET(CMAKE_REQUIRED_LIBRARIES curses) |
| | 308 | FIND_LIBRARY(CURSES_LIBRARY NAMES curses ncurses) |
| | 309 | SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARY}) |
| 307 | 310 | CHECK_LIBRARY_EXISTS("readline" "readline" "" HAVE_LIBREADLINE) |
| 308 | 311 | CHECK_LIBRARY_EXISTS("readline" "history" "" HAVE_LIBHISTORY) |
| 309 | 312 | IF(HAVE_LIBREADLINE AND HAVE_LIBHISTORY) |
diff -Naur netpanzer-0.8.3/src/Lib/physfs/physfs_platforms.h netpanzer-0.8.3-haiku/src/Lib/physfs/physfs_platforms.h
|
old
|
new
|
|
| 12 | 12 | * PHYSFS_PLATFORM_UNIX on that system. |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | | #if ((defined __BEOS__) || (defined __beos__)) |
| | 15 | #if ((defined __BEOS__) || (defined __beos__) || (defined __HAIKU__)) |
| 16 | 16 | # define PHYSFS_PLATFORM_BEOS |
| 17 | 17 | # define PHYSFS_PLATFORM_POSIX |
| 18 | 18 | #elif (defined _WIN32_WCE) || (defined _WIN64_WCE) |
diff -Naur netpanzer-0.8.3/src/Lib/physfs/platform/beos.cpp netpanzer-0.8.3-haiku/src/Lib/physfs/platform/beos.cpp
|
old
|
new
|
|
| 161 | 161 | |
| 162 | 162 | char *__PHYSFS_platformCalcBaseDir(const char *argv0) |
| 163 | 163 | { |
| 164 | | /* in case there isn't a BApplication yet, we'll construct a roster. */ |
| 165 | | BRoster roster; |
| 166 | | app_info info; |
| 167 | | status_t rc = roster.GetRunningAppInfo(getTeamID(), &info); |
| 168 | | BAIL_IF_MACRO(rc < B_OK, strerror(rc), NULL); |
| 169 | | BEntry entry(&(info.ref), true); |
| | 164 | image_info info; |
| | 165 | int32 cookie = 0; |
| | 166 | |
| | 167 | while (get_next_image_info(0, &cookie, &info) == B_OK) { |
| | 168 | if (info.type == B_APP_IMAGE) |
| | 169 | break; |
| | 170 | } |
| | 171 | |
| | 172 | BEntry entry(info.name, true); |
| 170 | 173 | BPath path; |
| 171 | | rc = entry.GetPath(&path); /* (path) now has binary's path. */ |
| | 174 | status_t rc = entry.GetPath(&path); /* (path) now has binary's path. */ |
| 172 | 175 | assert(rc == B_OK); |
| 173 | 176 | rc = path.GetParent(&path); /* chop filename, keep directory. */ |
| 174 | 177 | assert(rc == B_OK); |
diff -Naur netpanzer-0.8.3/src/NetPanzer/Core/main.cpp netpanzer-0.8.3-haiku/src/NetPanzer/Core/main.cpp
|
old
|
new
|
|
| 89 | 89 | case SIGFPE: sigtype = "SIGFPE"; break; |
| 90 | 90 | case SIGILL: sigtype = "SIGILL"; break; |
| 91 | 91 | case SIGSEGV: sigtype = "SIGSEGV"; break; |
| 92 | | case SIGBUS: sigtype = "SIGBUS"; break; |
| | 92 | |
| 93 | 93 | case SIGABRT: sigtype = "SIGABRT"; break; |
| 94 | 94 | case SIGTRAP: sigtype = "SIGTRAP"; break; |
| 95 | 95 | case SIGSYS: sigtype = "SIGSYS"; break; |