[etherlab-dev] [PATCH] allow building with musl

Steffen Dirkwinkel S.Dirkwinkel at beckhoff.com
Thu Apr 13 12:34:50 CEST 2017


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.dirkwinkel at 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: musl.patch
Type: application/octet-stream
Size: 630 bytes
Desc: musl.patch
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20170413/140bdbcc/attachment-0003.obj>


More information about the Etherlab-dev mailing list