When attempting to compile libftdi on FreeBSD, the lack of stdlib.h in
the example programs prevents them from compiling:
simple.c: In function 'main':
simple.c:18: error: 'EXIT_FAILURE' undeclared (first use in this
function)
simple.c:18: error: (Each undeclared identifier is reported only once
simple.c:18: error: for each function it appears in.)
simple.c:43: error: 'EXIT_SUCCESS' undeclared (first use in this
function)
*** Error code 1
Attached is a set of patches that adds the missing include to the
sources in examples that need it.
Craig
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
patches.txt
Description: Text document
|