Hi all, While trying to build etherlab for alpine linux(musl libc) I've encountered this error:
In file included from ../master/soe_errors.c:37:0: ../master/globals.h:266:1: error: unknown type name 'ssize_t' ssize_t ec_mac_print(const uint8_t *, char *); ^~~~~~~ The patch below fixes this. I've also attached it in case outlook breaks the formatting. Regards Steffen changeset: 2680:9a9684b53836 branch: stable-1.5 tag: tip parent: 2674:3be68a020748 user: Steffen Dirkwinkel <s.dirkwin...@beckhoff.com> date: Wed Mar 15 13:07:12 2017 +0100 summary: allow building with musl diff -r 3be68a020748 -r 9a9684b53836 master/globals.h --- a/master/globals.h Fri Mar 03 17:08:39 2017 +0100 +++ b/master/globals.h Wed Mar 15 13:07:12 2017 +0100 @@ -36,6 +36,10 @@ #ifndef __EC_MASTER_GLOBALS_H__ #define __EC_MASTER_GLOBALS_H__ +#ifndef __KERNEL__ +#include <sys/types.h> +#endif + #include "../globals.h" #include "../include/ecrt.h" Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Beckhoff Registered office: Verl, Germany | Register court: Guetersloh HRA 7075
musl.patch
Description: musl.patch
_______________________________________________ etherlab-dev mailing list etherlab-dev@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-dev