Skip to content

Commit 9afd34a

Browse files
authored
Merge pull request #13066 from jsquyres/pr/fix-path-max
v5.0.x: hurd: Fix build
2 parents 8362f23 + 856d56b commit 9afd34a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ompi/mca/fs/base/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ static inline bool mca_fs_base_is_link (const char *filename)
9494
static inline void mca_fs_base_get_real_filename (const char *filename, char **rfilename)
9595
{
9696
int namelen;
97-
char linkbuf[PATH_MAX+1];
97+
char linkbuf[OPAL_PATH_MAX+1];
9898

99-
namelen = readlink(filename, linkbuf, PATH_MAX);
99+
namelen = readlink(filename, linkbuf, OPAL_PATH_MAX);
100100
if (namelen == -1) {
101101
/* something strange has happened between the time that
102102
* we determined that this was a link and the time that

oshmem/mca/memheap/base/memheap_base_static.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int mca_memheap_base_static_init(mca_memheap_map_t *map)
4343
uint64_t offset;
4444
char dev[8];
4545
uint64_t inode;
46-
char pathname[MAXPATHLEN];
46+
char pathname[OPAL_PATH_MAX];
4747
FILE *fp;
4848
char line[1024];
4949
map_segment_t *s;

test/util/opal_os_path.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ static bool test3(void)
182182

183183
static bool test4(void)
184184
{
185-
char a[MAXPATHLEN + 10];
185+
char a[OPAL_PATH_MAX + 10];
186186
int i;
187187

188188
if (NULL == path_sep) {
189189
printf("test4 cannot be run\n");
190190
return(false);
191191
}
192192

193-
for (i=0; i< MAXPATHLEN+5; i++) {
193+
for (i = 0; i < OPAL_PATH_MAX + 5; i++) {
194194
a[i] = 'a';
195195
}
196196
a[i] = '\0';

0 commit comments

Comments
 (0)