Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

musl compatibility #130

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

musl compatibility #130

wants to merge 3 commits into from

Commits on Jun 4, 2024

  1. CLAMR: Add missing include wrt struct timeval for musl

    With musl, mesh.cpp compilation fails as struct timeval is not defined
    although <time.h> is included before "timer.h" which uses this data
    type.
    
    The reason is with musl contrary to glibc, <time.h> does not include
    <sys/time.h> (which provides gettimeofday, struct timeval).
    
    Fixes llvm/llvm-project#94320
    v01dxyz committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    b6d9197 View commit details
    Browse the repository at this point in the history
  2. Obsequi: Use ANSI C LCG instead of random() for g_zobrist init

    musl implements random() differently than glibc.
    
    The output of the program is thus dependent on this implementation
    detail and could differ between platforms. To remediate that, we
    replace it by a very simple PRNG (ANSI C LCG).
    
    Warning: [^1] indicates this PRNG have quite a poor LSB randomness.
    
    [^1]: Entacher, Karl. (1999). A Collection of Selected Pseudorandom
    Number Generators With Linear Structures.
    
    Fixes llvm/llvm-project#94048
    v01dxyz committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    286ead4 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. office-ispell: Use a POSIX macro to enable including <termios.h>

    Compatible with musl in particular. <unistd.h> is already included in
    "config.h".
    
    It supposes the system does not "lie" by providing only a partial POSIX
    support.
    
    FreeBSD/NetBSD/OpenBSD/Apple (XNU) provides the macro too but are left
    untouched as I don't have the means to test it.
    
    Duplicate of an abandoned patch from 2015: https://reviews.llvm.org/D13938
    v01dxyz committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    551187d View commit details
    Browse the repository at this point in the history