Source: mdocml
Version: 1.13.3-1
Severity: important
Justification: fails to build from source
The hurd-i386 build of mdocml failed:
cc -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
-Wdate-time -D_FORTIFY_SOURCE=2 -c -o manpath.o manpath.c
manpath.c: In function 'manpath_parse':
manpath.c:44:14: error: 'PATH_MAX' undeclared (first use in this function)
char cmd[(PATH_MAX * 3) + 20];
This is a common portability issue on the Hurd, which imposes no hard
limit here. IIRC, the usual fix is to add a conditional definition:
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
Could you please take a look?
Thanks!