GithubHelp home page GithubHelp logo

compilation error on OSX about sqleet HOT 4 CLOSED

resilar avatar resilar commented on July 17, 2024
compilation error on OSX

from sqleet.

Comments (4)

madebymozart avatar madebymozart commented on July 17, 2024 1

Had the same problem. A quick fix is adding this line of code on line 204892

Change:

#if defined(__unix__)
#include <stropts.h>
#include <sys/syscall.h>
#define _GNU_SOURCE
#include <unistd.h>
#ifdef __linux__
#include <linux/random.h>
#endif

to this

#if defined(__unix__) || defined(__APPLE__)
// #include <stropts.h>
#include <sys/syscall.h>
#define _GNU_SOURCE
#include <unistd.h>
#ifdef __linux__
#include <linux/random.h>
#endif

Still works on windows, Haven't tested Linux/Android though yet

UPDATE

Compiles and works good with android. Not sure what <stropts.h> is used for though...

from sqleet.

resilar avatar resilar commented on July 17, 2024 1

Thanks for reporting the issue (unfortunately I don't have OS X to test with). <stropts.h> is actually used only on Linux to make the RNDGETENTCNT ioctl (thus the include belongs under an #ifdef __linux__).

Commit 413bf79 should fix the OS X build. I'd appreciate it if someone could create a couple encrypted databases on OS X and confirm that the first 16 bytes (random PBKDF2 salt) are indeed random. On OS X, sqleet's entropy() function probably falls back to using read_urandom() (original version from here) which is only tested on Linux, but should work.

from sqleet.

madebymozart avatar madebymozart commented on July 17, 2024

I'll test it for you :)

from sqleet.

resilar avatar resilar commented on July 17, 2024

No comments since September, I'm closing the issue as resolved.

from sqleet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.