[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/NEWLIB PATCH] Add patch to support Libevent



From: gaulthier gain <gaulthier.gain@xxxxxxxxx>

This patch allows to add the `LIST_END` macro in newlib which is
required by libevent. Libevent patches will be sent in a separated
patch series.

Signed-off-by: gaulthier gain <gaulthier.gain@xxxxxxxxx>
---
 .../0010-Add-LIST-END-macro-in-queue.patch    | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 patches/0010-Add-LIST-END-macro-in-queue.patch

diff --git a/patches/0010-Add-LIST-END-macro-in-queue.patch 
b/patches/0010-Add-LIST-END-macro-in-queue.patch
new file mode 100644
index 0000000..5691079
--- /dev/null
+++ b/patches/0010-Add-LIST-END-macro-in-queue.patch
@@ -0,0 +1,29 @@
+From 0209323f663c827513033419b49bfb5a8c0c5b2a Mon Sep 17 00:00:00 2001
+From: gaulthier gain <gaulthier.gain@xxxxxxxxx>
+Date: Mon, 10 Aug 2020 09:32:55 +0000
+Subject: [PATCH] Add LIST_END macro in queue.h
+
+This patch adds the LIST_END macro in `sys/queue.h` which is required
+by liblibevent.
+
+Signed-off-by: gaulthier gain <gaulthier.gain@xxxxxxxxx>
+---
+ newlib/libc/include/sys/queue.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/newlib/libc/include/sys/queue.h b/newlib/libc/include/sys/queue.h
+index 491bdde..f1959f5 100644
+--- a/newlib/libc/include/sys/queue.h
++++ b/newlib/libc/include/sys/queue.h
+@@ -539,6 +539,8 @@ struct {                                                   
        \
+ 
+ #define       LIST_FIRST(head)        ((head)->lh_first)
+ 
++#define       LIST_END(head)          NULL
++
+ #define       LIST_FOREACH(var, head, field)                                  
\
+       for ((var) = LIST_FIRST((head));                                \
+           (var);                                                      \
+-- 
+2.17.1
+
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.