[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT/LIBRUBY] Fix double definition warning and add suppress flag for cleaner build.
Looks good. Thanks! Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> On 14.02.20 13:33, Felipe Huici wrote: Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx> --- Makefile.uk | 2 +- ...-fix-double-definition-warning-dir-c.patch | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 patches/0002-fix-double-definition-warning-dir-c.patch diff --git a/Makefile.uk b/Makefile.uk index 8d60bce..6d706b3 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -66,7 +66,7 @@ LIBRUBY_SUPPRESS_FLAGS-y = -Wno-cast-function-type -Wno-long-long \ -Wno-missing-field-initializers -Wno-overlength-strings \ -Wno-packed-bitfield-compat -Wno-tautological-compare \ -Wno-unused-parameter -Wno-unused-value -Wno-implicit-fallthrough \ - -Wno-unused-but-set-variable + -Wno-unused-but-set-variable -Wno-type-limits LIBRUBY_SUPPRESS_FLAGS-$(call gcc_version_ge,9,0) += -Wno-address-of-packed-member LIBRUBY_SUPRESS_CFLAGS-y += $(LIBRUBY_SUPPRESS_FLAGS-y) \ -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast diff --git a/patches/0002-fix-double-definition-warning-dir-c.patch b/patches/0002-fix-double-definition-warning-dir-c.patch new file mode 100644 index 0000000..ace691e --- /dev/null +++ b/patches/0002-fix-double-definition-warning-dir-c.patch @@ -0,0 +1,24 @@ +--- a/dir.c.orig 2020-02-14 13:17:05.146913259 +0100 ++++ b/dir.c 2020-02-14 13:17:17.010776446 +0100 +@@ -24,10 +24,6 @@ + #include <unistd.h> + #endif + +-#ifndef O_CLOEXEC +-# define O_CLOEXEC 0 +-#endif +- + #ifndef USE_OPENDIR_AT + # if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD) && \ + defined(HAVE_OPENAT) && defined(HAVE_FSTATAT) +@@ -43,6 +39,10 @@ + # define AT_FDCWD -1 + #endif + ++#ifndef O_CLOEXEC ++# define O_CLOEXEC 0 ++#endif ++ + #undef HAVE_DIRENT_NAMLEN + #if defined HAVE_DIRENT_H && !defined _WIN32 + # include <dirent.h> _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |