fix build on MacOS
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include "infnoise.h"
|
#include "infnoise.h"
|
||||||
#include "libinfnoise.h"
|
#include "libinfnoise.h"
|
||||||
#include "KeccakF-1600-interface.h"
|
|
||||||
|
|
||||||
static void initOpts(struct opt_struct *opts) {
|
static void initOpts(struct opt_struct *opts) {
|
||||||
opts->outputMultiplier = 0u;
|
opts->outputMultiplier = 0u;
|
||||||
@@ -250,7 +249,7 @@ int main(int argc, char **argv) {
|
|||||||
close(devRandomFD);
|
close(devRandomFD);
|
||||||
#endif
|
#endif
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
message = "dev/random not supported on macOS";
|
context.message = "dev/random not supported on macOS";
|
||||||
fprintf(stderr, "Error: %s\n", context.message);
|
fprintf(stderr, "Error: %s\n", context.message);
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user