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

Does not compile on OSX #2

Open
brainstorm opened this issue Nov 3, 2020 · 0 comments
Open

Does not compile on OSX #2

brainstorm opened this issue Nov 3, 2020 · 0 comments

Comments

@brainstorm
Copy link

brainstorm commented Nov 3, 2020

Feeling lazy for a PR with the proper ifdefs, but you get the idea:

$ git diff
diff --git a/binbloom.c b/binbloom.c
index 171765c..6a6f31b 100644
--- a/binbloom.c
+++ b/binbloom.c
@@ -18,7 +18,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
-#include <malloc.h>
+#include <malloc/malloc.h>
 #include <assert.h>
 #include <unistd.h>
 #include <sys/types.h>

Otherwise:

$ make
gcc -O3 -Wall -Wextra binbloom.c -o binbloom
binbloom.c:21:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
make: *** [binbloom] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant