packages/net/knxd/patches/020-cdefs.patch
Rosen Penev 0b37205d21
knxd: fix compilation without sys/cdefs
sys/cdefs.h does not come with musl. It's also deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-10 15:25:04 -07:00

25 lines
460 B
Diff

--- a/src/include/eibclient.h
+++ b/src/include/eibclient.h
@@ -27,10 +27,11 @@
#ifndef EIBCLIENT_H
#define EIBCLIENT_H
-#include <sys/cdefs.h>
#include <stdint.h>
-__BEGIN_DECLS;
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "eibloadresult.h"
@@ -935,5 +936,7 @@ int EIB_Cache_LastUpdates2_async (EIBConnection * con, uint32_t start,
uint32_t * end);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif