aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-11 23:11:29 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2017-08-23 00:06:41 +0200
commitd335c5505a9b46a0cdb5d478ecba5441897cc538 (patch)
treec0e3de766fbbd4a12fdcbd49206183d56cbcc653 /testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch
parent01a5e34bb8d08db00b1ed423acc3cfb41e40f002 (diff)
downloadaports-d335c5505a9b46a0cdb5d478ecba5441897cc538.tar.bz2
aports-d335c5505a9b46a0cdb5d478ecba5441897cc538.tar.xz
testing/ndctl: upgrade to 57.1 and modernize
Upgrade and remove a patch that is already applied upstream
Diffstat (limited to 'testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch')
-rw-r--r--testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch b/testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch
deleted file mode 100644
index 91def43fe4..0000000000
--- a/testing/ndctl/0001-util-Enable-ndctl-to-compile-on-non-glibc-envs.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From da1d1cbbffe90aefe1579d2708bae43753c5afb4 Mon Sep 17 00:00:00 2001
-From: Breno Leitao <breno.leitao@gmail.com>
-Date: Sat, 11 Mar 2017 22:33:43 +0000
-Subject: [PATCH] util: Enable ndctl to compile on non-glibc envs
-
-Currently ndctl does not build on non-glibc environments, as musl.
-
-It fails because neither functions secure_getenv() nor
-_secure_getenv() are available. These functions are only available
-on systems with glibc version 2.17 or later.
-
-This patch just make a fallback to getenv() if the secure functions
-are missing.
-
-Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
----
- util/log.h | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/util/log.h b/util/log.h
-index 5c5922f..5fc56e8 100644
---- a/util/log.h
-+++ b/util/log.h
-@@ -62,7 +62,8 @@ do { \
- # ifdef HAVE___SECURE_GETENV
- # define secure_getenv __secure_getenv
- # else
--# error neither secure_getenv nor __secure_getenv is available
-+# warning neither secure_getenv nor __secure_getenv is available.
-+# define secure_getenv getenv
- # endif
- #endif
-
---
-2.11.1
-