me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

Compilation failure with <linux/tcp.h> #41

Closed nkolban closed 8 years ago

nkolban commented 8 years ago

When we try to compile a sample from the Bridge Library such as HttpClient we end up with a compilation error that is described in detail at this Stack Overflow Q&A:

http://stackoverflow.com/questions/1624364/tcp-h-error-with-gcc-4-4-1

The solution described in the article is to replace <linux/tcp.h> with <netinet/tcp.h>.

nkolban commented 8 years ago

The change was made to a couple of source files replacing <linux/tcp.h> with <netinet/tcp.h>.