jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.4k stars 763 forks source link

Disable large file support on old glibc #1910

Closed sjmulder closed 3 months ago

sjmulder commented 4 months ago

On glibc <2.23 fts.h doesn't support the feature:

https://sourceware.org/bugzilla/show_bug.cgi?id=11460

In file included from src/nnn.c:78:0:
/usr/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
 # error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
sjmulder commented 4 months ago

It's your call to make - the advantage is that nnn can still run older targets such as CentOS 7, at the cost of a bit of preprocessor crud. Functionally there's no degradation on platforms where nnn already works.

jarun commented 3 months ago

Closing this since this is working for a very long time.