eddic / fastcgipp

fastcgi++: A C++ FastCGI and Web development platform:
https://fastcgipp.isatec.ca
GNU Lesser General Public License v3.0
310 stars 94 forks source link

in os x make error:use of undeclared identifier 'HOST_NAME_MAX' #13

Closed pagict closed 7 years ago

pagict commented 7 years ago

As the title gives: use of undeclared identifier 'HOST_NAME_MAX', when cmake, make under OS X 10.11.6

pedrosoares commented 7 years ago

Put this on log.cpp

#if __APPLE__

    #ifndef HOST_NAME_MAX
        #define HOST_NAME_MAX 255
    #endif

    #ifndef program_invocation_name
        #define program_invocation_name "fastcgi"
    #endif

#endif

This Variable is only avaliable on Linux.

EDIT1: There another erros that show on Mac Os, i fix they in my computer, i gonna commit right now.

pagict commented 7 years ago

worked.