Files
operating-system/buildroot/package/avro-c/0001-Allow-avro-C-to-be-built-on-musl-based-systems.patch
Pascal Vizeli 5a6678147e Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix LN

* Fix wpa

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix lint

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* fix-network

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix script

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-04-16 20:03:01 +02:00

46 lines
1.4 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
From 9b39a985bcd6cd34f0820f3680f145d46c0e56bd Mon Sep 17 00:00:00 2001
From: Titouan Christophe <titouan.christophe@railnova.eu>
Date: Sun, 8 Dec 2019 01:55:59 +0100
Subject: [PATCH] Allow avro C to be built on musl based systems.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The type `ssize_t` is defined in sys/types.h, and nowhere else
in the musl standard C library, so it should be included for the
compilation to succeed.
This fixes several errors like:
In file included from src/generic.c:29:0:
src/generic.c: In function avro_generic_value_new:
src/avro_generic_internal.h:63:39:
error: ssize_t undeclared (first use in this function);
did you mean size_t?
Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
[yann.morin.1998@free.fr:
- backported from upstream 9b39a98, adapted to the release tarball
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
src/avro_generic_internal.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/avro_generic_internal.h b/src/avro_generic_internal.h
index 709403c0..9843ed65 100644
--- a/src/avro_generic_internal.h
+++ b/src/avro_generic_internal.h
@@ -24,6 +24,8 @@ extern "C" {
#define CLOSE_EXTERN
#endif
+#include <sys/types.h>
+
#include "avro/generic.h"
#include "avro/schema.h"
#include "avro/value.h"
--
2.20.1