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

Re: [Minios-devel] [UNIKRAFT PATCH] Fix limits.h header confusion



Thanks!

Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 05.03.20 11:26, gaulthier.gain@xxxxxxxxx wrote:
From: gaulthier gain <gaulthier.gain@xxxxxxxxx>

Use specific 'limits.h' file rather than '<limits.h>' which
may come from another library before in header include list.

This patch is required to compile latest version of musl (see patch
series: Continue MUSL support).

Signed-off-by: gaulthier gain <gaulthier.gain@xxxxxxxxx>
---
  lib/posix-sysinfo/sysinfo.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/posix-sysinfo/sysinfo.c b/lib/posix-sysinfo/sysinfo.c
index 7bcfc8b3..84498635 100644
--- a/lib/posix-sysinfo/sysinfo.c
+++ b/lib/posix-sysinfo/sysinfo.c
@@ -33,7 +33,7 @@
   */
#include <stddef.h>
-#include <limits.h>
+#include <uk/arch/limits.h>
  #include <unistd.h>
  #include <errno.h>
  #include <string.h>




 


Rackspace

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