[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886379: imx-usb-loader: FTBFS on hurd-i386: PATH_MAX undeclared

Source: imx-usb-loader
Version: 0~git20171026.138c0b25-1
Severity: important
Tags: upstream
Justification: fails to build from source
User: debian-hurd@lists.debian.org
Usertags: hurd-i386

The build of imx-usb-loader for hurd-i386 (admittedly not a release
architecture) failed:

  imx_sdp.c:158:11: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'INT8_MAX'?

The Hurd notoriously has no static PATH_MAX.  Best practice is
dynamically accommodating whatever you actually encounter, since
preallocated buffers are liable either to waste memory or to risk
truncation (or, worse, overflows).  However, if that's infeasible for
some reason, you can also look up _PC_PATH_MAX via pathconf or supply
a fallback constant definition (traditionally 4096).

Could you please take a look?


Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu

Reply to: