Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

simple_listener and simple_rx don't compile - proposed solution #891

Open psow opened 4 years ago

psow commented 4 years ago

When I tried to compile those examples I got this: In file included from simple_rx.c:60: ../../daemons/mrpd/mrpd.h:50:13: error: two or more data types in declaration specifiers typedef int SOCKET;

It seems that simple_listener and simple_rx both include pcap/pcap.h, and there you can find the "#define SOCKET int" line.

It works fine for me, after making the following change in mrpd.h:

ifndef SOCKET

typedef int SOCKET;

endif

Note: I also had to create a symlink in lib/igb_avb/lib pointing to lib directory from AVnu/igb_avb repository.