Results 1 to 6 of 6

Thread: Server-Extension for Linux CoD2 1.2 / 1.3 and CoD4 1.7 Source/Binaries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I have a few modifications that fixes a few compile errors in libcod2.cpp

    After line 28 add:
    PHP Code:
    extern char **__environ
    Fixes: '__environ' was not declared in this scope

    Replace line 931 with:
    PHP Code:
    int hook_pthread_self(void
    Fixes: invalid conversion from 'int' to 'pthread_t {aka pthread*}'

    On line 1019 you have got this:
    PHP Code:
    if (stream->_fileno <= 4)
    printf("_fileno=%d "stream->_fileno); 
    Replace with:
    PHP Code:
        int _fileno fileno(stream);
        if (
    _fileno <= 4)
        
    printf("_fileno=%d "_fileno); 
    Fixes: 'FILE' has no member named '_fileno'.

    Now I can compile all the files on freeBSD, but i have got currently problems with linking the files.

  2. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (19th August 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •