Author: Andreas Beckmann Description: fix building with -Werror=implicit-function-declaration major()/minor() are in sys/sysmacros.h asprintf() is only exposed by stdio.h if _GNU_SOURCE is defined --- a/src/SerialImp.c +++ b/src/SerialImp.c @@ -55,6 +55,7 @@ | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ +#define _GNU_SOURCE #if defined(__MWERKS__) /* dima */ #include "RXTXPort.h" /* dima */ #else /* dima */ @@ -146,6 +147,7 @@ #ifdef LIBLOCKDEV #include #endif /* LIBLOCKDEV */ +#include extern int errno;