Skip to content

MAXPATHLEN not defined on hurd systems #1414

@babelouest

Description

@babelouest

Describe the bug
When building libssh2 on hurd* systems, the tests fail to build because MAXPATHLEN is not defined on those systems:

session_fixture.c:231:36: error: ‘MAXPATHLEN’ undeclared (first use in
this function)
  231 |     static char filepath[NUMPATHS][MAXPATHLEN];
      |                                    ^~~~~~~~~~

See Debian build logs on hurd-i386

Version (please complete the following information):

  • OS and version: Debian hurd i386 and Debian hurd amd64
  • libssh2 version: 1.11.0
  • crypto backend and version: OpenSSL 3.2.2

Additional context
The build issue is in the test file tests/session_fixture.c

The bug open in debian is #1068076

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions