Skip to content

Compiling fails on Mac #53

@jospic

Description

@jospic

Hi,
when I've tried to compiling on Mac get this error:

warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface.

I seems that fails on following function inside sqleet.c (at line 229298):

static size_t entropy(void *buf, size_t n)
{
    #if defined(__linux__) && defined(SYS_getrandom)
    if (syscall(SYS_getrandom, buf, n, 0) == n)
        return n;
    #elif defined(SYS_getentropy)
    if (syscall(SYS_getentropy, buf, n) == 0)
        return n;
    #endif
    return read_urandom(buf, n);
}

Any suggestions?
Thanks in advance.
-j

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions