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

fix the code to support mac #6

Merged
merged 1 commit into from
Dec 26, 2014
Merged

fix the code to support mac #6

merged 1 commit into from
Dec 26, 2014

Conversation

clevertension
Copy link
Contributor

I have successfully build it on osx 10.9

#include <net/bpf.h>
#include <pcap.h>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@clevertension
Copy link
Contributor Author

the #include position switch can avoid "redefinition of ‘struct bpf_program’", please see this
http://forums.macrumors.com/showthread.php?t=624675

@clevertension
Copy link
Contributor Author

Compared with #1 , This is the minimize code change to support OSX, thanks

antirez added a commit that referenced this pull request Dec 26, 2014
fix the code to support mac
@antirez antirez merged commit 96ca13b into antirez:master Dec 26, 2014
@antirez
Copy link
Owner

antirez commented Dec 26, 2014

Merged, it's years I don't look here but I plan to be more responsive, sorry. Compared to #1 this is more minimal and a non brainer, would be great to integrate things from #1 that are necessary for a better osx experience. For me it is not super important to support xcode at all.

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

Successfully merging this pull request may close these issues.

3 participants