Re: [hackers] [9base][patch] check for _LARGEFILE64_SOURCE instead of __USE_LARGEFILE64

From: Anselm R Garbe <>
Date: Mon, 12 Sep 2016 14:30:15 +0200

On 9 September 2016 at 21:48, Evan Gates <> wrote:
> glibc doesn't define getdents() and requires use of the raw syscall.
> As such lib9/dirread.c needed to decide whether to use SYS_getdents or
> SYS_getdents64 and was checking if __USE_LARGEFILE64 was defined in
> order to do so. musl does not define __USE_LARGEFILE64 so the wrong
> syscall was being used. musl does however define _LARGEFILE64_SOURCE,
> the macro that glibc checks in order to define __USE_LARGEFILE64.

Thanks, applied.

Received on Mon Sep 12 2016 - 14:30:15 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 12 2016 - 14:36:18 CEST