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

[Minios-devel] [UNIKRAFT/LIBUV PATCH v2 3/3] Add patches



We add a patch that guards the macro ARRAY_SIZE. We already
have the same definition in unikraft.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>
---
 patches/0001-Add-guard-for-ARRAY_SIZE.patch | 27 +++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 patches/0001-Add-guard-for-ARRAY_SIZE.patch

diff --git a/patches/0001-Add-guard-for-ARRAY_SIZE.patch 
b/patches/0001-Add-guard-for-ARRAY_SIZE.patch
new file mode 100644
index 0000000..47be028
--- /dev/null
+++ b/patches/0001-Add-guard-for-ARRAY_SIZE.patch
@@ -0,0 +1,27 @@
+From 1df57d50312d29a84e116b0ea6fc6dac75d9bda5 Mon Sep 17 00:00:00 2001
+From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>
+Date: Mon, 6 Apr 2020 15:23:36 +0300
+Subject: [PATCH 1/1] Add guard for ARRAY_SIZE
+
+Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>
+---
+ src/uv-common.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/uv-common.h b/src/uv-common.h
+index f788161..074467a 100644
+--- a/src/uv-common.h
++++ b/src/uv-common.h
+@@ -52,7 +52,9 @@
+ extern int snprintf(char*, size_t, const char*, ...);
+ #endif
+ 
++#ifndef ARRAY_SIZE
+ #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
++#endif
+ 
+ #define container_of(ptr, type, member) \
+   ((type *) ((char *) (ptr) - offsetof(type, member)))
+-- 
+2.20.1
+
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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