Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
56
tools/gnulib/patches/200-force-disable-after-configure.patch
Normal file
56
tools/gnulib/patches/200-force-disable-after-configure.patch
Normal file
@@ -0,0 +1,56 @@
|
||||
--- a/lib/fcntl.c
|
||||
+++ b/lib/fcntl.c
|
||||
@@ -198,6 +198,8 @@ static int klibc_fcntl (int fd, int acti
|
||||
FD_CLOEXEC is portable, but other flags may be present); otherwise
|
||||
return -1 and set errno. */
|
||||
|
||||
+#if (GNULIB_defined_fcntl || GNULIB_defined_rpl_fcntl)
|
||||
+
|
||||
int
|
||||
fcntl (int fd, int action, /* arg */...)
|
||||
#undef fcntl
|
||||
@@ -443,6 +445,8 @@ fcntl (int fd, int action, /* arg */...)
|
||||
return result;
|
||||
}
|
||||
|
||||
+#endif /* (GNULIB_defined_fcntl || GNULIB_defined_rpl_fcntl) */
|
||||
+
|
||||
static int
|
||||
rpl_fcntl_DUPFD (int fd, int target)
|
||||
{
|
||||
--- a/lib/stdlib.in.h
|
||||
+++ b/lib/stdlib.in.h
|
||||
@@ -1447,10 +1447,16 @@ _GL_FUNCDECL_RPL (reallocarray, void *,
|
||||
(void *ptr, size_t nmemb, size_t size));
|
||||
_GL_CXXALIAS_RPL (reallocarray, void *,
|
||||
(void *ptr, size_t nmemb, size_t size));
|
||||
+# if !GNULIB_defined_rpl_reallocarray
|
||||
+# define GNULIB_defined_rpl_reallocarray 1
|
||||
+# endif
|
||||
# else
|
||||
# if ! @HAVE_REALLOCARRAY@
|
||||
_GL_FUNCDECL_SYS (reallocarray, void *,
|
||||
(void *ptr, size_t nmemb, size_t size));
|
||||
+# if !GNULIB_defined_reallocarray
|
||||
+# define GNULIB_defined_reallocarray 1
|
||||
+# endif
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (reallocarray, void *,
|
||||
(void *ptr, size_t nmemb, size_t size));
|
||||
--- a/lib/reallocarray.c
|
||||
+++ b/lib/reallocarray.c
|
||||
@@ -23,6 +23,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
+#if (GNULIB_defined_reallocarray || GNULIB_defined_rpl_reallocarray)
|
||||
+
|
||||
void *
|
||||
reallocarray (void *ptr, size_t nmemb, size_t size)
|
||||
{
|
||||
@@ -36,3 +38,5 @@ reallocarray (void *ptr, size_t nmemb, s
|
||||
/* Rely on the semantics of GNU realloc. */
|
||||
return realloc (ptr, nbytes);
|
||||
}
|
||||
+
|
||||
+#endif /* (GNULIB_defined_reallocarray || GNULIB_defined_rpl_reallocarray) */
|
||||
Reference in New Issue
Block a user