Skip to content

Commit cb6011f

Browse files
authored
Merge pull request #13063 from sthibaul/path_max
hurd: Fix build
2 parents 6889000 + 13efcd0 commit cb6011f

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
@@ -174,15 +174,15 @@ static bool test3(void)
174174

175175
static bool test4(void)
176176
{
177-
char a[MAXPATHLEN + 10];
177+
char a[OPAL_PATH_MAX + 10];
178178
int i;
179179

180180
if (NULL == path_sep) {
181181
printf("test4 cannot be run\n");
182182
return false;
183183
}
184184

185-
for (i = 0; i < MAXPATHLEN + 5; i++) {
185+
for (i = 0; i < OPAL_PATH_MAX + 5; i++) {
186186
a[i] = 'a';
187187
}
188188
a[i] = '\0';

0 commit comments

Comments
 (0)