diff --git a/src/mca/io/romio/romio-dist/adio/include/io_adio_conv.h b/src/mca/io/romio/romio-dist/adio/include/io_adio_conv.h index bffaa4c23f..18211472b9 100644 --- a/src/mca/io/romio/romio-dist/adio/include/io_adio_conv.h +++ b/src/mca/io/romio/romio-dist/adio/include/io_adio_conv.h @@ -14,7 +14,15 @@ /* These function #defines are separated from the MPI_File_* (and related) #defines mainly on principle */ -/* Internal ROMIO functions -- found by the illegal symbol report */ +/* Some places only include adio.h, not mpio.h, but still use + MPIR_Status_set_bytes. So add a #define here for it for those + cases */ + +#ifndef MPIR_Status_set_bytes +#define MPIR_Status_set_bytes ROMIO_PREFIX(MPIR_Status_set_bytes) +#endif + +/* Internal ROMIO functions (found by the illegal symbol report) */ #define ADIO_Close ROMIO_PREFIX(ADIO_Close) #define ADIO_End ROMIO_PREFIX(ADIO_End) diff --git a/src/mca/io/romio/romio-dist/include/io_romio_conv.h b/src/mca/io/romio/romio-dist/include/io_romio_conv.h index 54bb29f888..698cb6bcf0 100644 --- a/src/mca/io/romio/romio-dist/include/io_romio_conv.h +++ b/src/mca/io/romio/romio-dist/include/io_romio_conv.h @@ -111,6 +111,8 @@ #undef MPI_FILE_NULL /* Let's not use MPIR_Status_set_bytes */ +#ifndef MPIR_Status_set_bytes #define MPIR_Status_set_bytes ROMIO_PREFIX(MPIR_Status_set_bytes) +#endif #endif /* MCA_IO_ROMIO_CONV_H */