Skip to content

Commit

Permalink
romio/test: fix test/aggregation1 on mac clang
Browse files Browse the repository at this point in the history
Although the manual says we need _XOPEN_SOURCE >= 500 in order for
stdio.h to provide snprintf, apparently on Mac Clang it requires
a strict > 500. Update it to 600 fixes the build error in "make check".
  • Loading branch information
hzhou committed Nov 21, 2024
1 parent d1b04e8 commit 9f5bb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpi/romio/test/aggregation1.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* Test case from John Bent (ROMIO req #835)
* Aggregation code was not handling certain access patterns when collective
* buffering forced */
#define _XOPEN_SOURCE 500 /* strdup not in string.h otherwise */
#define _XOPEN_SOURCE 600 /* strdup not in string.h otherwise */
#include <unistd.h>
#include <stdlib.h>
#include <mpi.h>
Expand Down

0 comments on commit 9f5bb08

Please sign in to comment.