hiroyuki-sato / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group):
http://www.openucx.org
Other
2 stars 0 forks source link

macOS doesn't define HOST_NAME_MAX #15

Open hiroyuki-sato opened 5 years ago

hiroyuki-sato commented 5 years ago

macOS doesn't define HOST_NAME_MAX

Simple way.

#ifdef __APPLE__
#define HOST_NAME_MAX 64
#endif
  CC       sys/libucs_la-init.lo
In file included from sys/init.c:13:
In file included from /path/to/openucx/ucx/src/ucs/profile/profile.h:17:
In file included from /path/to/openucx/ucx/src/ucs/profile/profile_off.h:10:
/path/to/openucx/ucx/src/ucs/profile/profile_defs.h:51:39: error:
      use of undeclared identifier 'HOST_NAME_MAX'
    char                     hostname[HOST_NAME_MAX];  /**< Host name */
                                      ^