Menu

#657 modification for "make pe-make" command in OSX

workingwiki
open
nobody
None
5
2016-07-09
2016-07-09
No

In order to compile "make pe-make" command for ProjectEngine, I would propose to add the following lines to the code of pe-make.c


/ OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX /

ifndef HOST_NAME_MAX

# if defined(_POSIX_HOST_NAME_MAX)
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
# elif defined(MAXHOSTNAMELEN)
# define HOST_NAME_MAX MAXHOSTNAMELEN
# endif

endif / HOST_NAME_MAX /

Discussion

  • Andrei Akhmetzhanov

    // OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
    #ifndef HOST_NAME_MAX
     # if defined(_POSIX_HOST_NAME_MAX)
     #  define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
     # elif defined(MAXHOSTNAMELEN)
     #  define HOST_NAME_MAX MAXHOSTNAMELEN
     # endif
    #endif /* HOST_NAME_MAX */
    
     
  • Lee Worden

    Lee Worden - 2016-07-09

    Sounds good to me!

     

Anonymous
Anonymous

Add attachments
Cancel