contextgarden / luametatex

Temporary/draft repository with luametatex
30 stars 6 forks source link

Fails to compile on HURD #9

Closed hpreusse closed 1 month ago

hpreusse commented 8 months ago

The file source/luarest/lmtfilelib.c fails to compile on GNU/Hurd b/c MAXPATHLEN is not defined there. The build log is visible here. I tried to find an upstream repository for that piece of software, but did not find it.

hanshagen commented 8 months ago

I'll add this (you can add it and try yourself):

# ifdef MAXPATHLEN
    # define MY_MAXPATHLEN MAXPATHLEN
# else 
    # define MY_MAXPATHLEN 255
# endif 
hpreusse commented 8 months ago

Yes, this is probably the most common way to solve the issue. I don't have a GNU/Hurd system at hand, I'll probably upload the latest release soon and then we'll know the results.

hpreusse commented 1 month ago

Works with v2.11.02.