Skip to content

Commit

Permalink
Fix HOST_NAME_MAX undefined issue on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Mar 23, 2022
1 parent 692def4 commit 79ab35f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/pdc_timing.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#ifndef PDC_TIMING_H
#define PDC_TIMING_H

#ifndef HOST_NAME_MAX
#if defined(__APPLE__)
#define HOST_NAME_MAX 255
#else
#define HOST_NAME_MAX 64
#endif /* __APPLE__ */
#endif /* HOST_NAME_MAX */

#ifdef PDC_TIMING

#include <mpi.h>
Expand Down

0 comments on commit 79ab35f

Please sign in to comment.