dethrace icon indicating copy to clipboard operation
dethrace copied to clipboard

FreeBSD compilation fixes

Open PierreMarieBaty opened this issue 1 year ago • 7 comments

In src/BRSRC13/CORE/STD/brstdfile.c line 91

int BrStdioEof(void* f) {
    return feof((FILE*)f); // Pierre-Marie Baty -- added type cast because feof(f) is a macro dereferencing f on some systems
}

in src/BRSRC13/CORE/V1DB/enables.c line 178

        v1db.renderer->dispatch->_partSet(v1db.renderer, BRT_MATRIX, 0, BRT_VIEW_TO_ENVIRONMENT_M34_F, (br_uint_32)&view_to_this); // Pierre-Marie Baty -- FIXME: probably incorrect cast on x64 systems, but necessary to compile without error

in src/harness/include/harness/winsock.h line 25, add

#include <netinet/in.h> // Pierre-Marie Baty -- POSIX location of struct sockaddr_in

After these fixes, dethrace compiles successfully on FreeBSD/arm64 FWIW.

PierreMarieBaty avatar Dec 22 '23 17:12 PierreMarieBaty