aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/cmd
diff options
context:
space:
mode:
authorJosé Luis Salvador Rufo <[email protected]>2021-02-17 06:51:46 +0100
committerGitHub <[email protected]>2021-02-16 21:51:46 -0800
commitaef1830f932c3499cb5430b4c1bd9d21f87808f3 (patch)
tree75ae5a5d52d913daa643d06d46499c7ffa2f6f28 /tests/zfs-tests/cmd
parent436ab35a53bad83c3dc4b8f1dc2b6ad00bd5e9ec (diff)
Support uClibc for the tests compilations
There are two issues that don't allow ZFS to be compiled using uClibc. `backtrace()`, and `program_invocation_short_name` as a `const`. This patch adds uClibc to the conditionals in the same way there are already for Glibc for `backtrace()`; and removes the external param `program_invocation_short_name` because its only used here for the whole project. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: José Luis Salvador Rufo <[email protected]> Closes #11600
Diffstat (limited to 'tests/zfs-tests/cmd')
-rw-r--r--tests/zfs-tests/cmd/xattrtest/xattrtest.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/zfs-tests/cmd/xattrtest/xattrtest.c b/tests/zfs-tests/cmd/xattrtest/xattrtest.c
index 42c510ed0..8c4cb8895 100644
--- a/tests/zfs-tests/cmd/xattrtest/xattrtest.c
+++ b/tests/zfs-tests/cmd/xattrtest/xattrtest.c
@@ -44,11 +44,9 @@
#include <sys/time.h>
#include <linux/limits.h>
-extern char *program_invocation_short_name;
-
#define ERROR(fmt, ...) \
- fprintf(stderr, "%s: %s:%d: %s: " fmt "\n", \
- program_invocation_short_name, __FILE__, __LINE__, \
+ fprintf(stderr, "xattrtest: %s:%d: %s: " fmt "\n", \
+ __FILE__, __LINE__, \
__func__, ## __VA_ARGS__);
static const char shortopts[] = "hvycdn:f:x:s:p:t:e:rRko:";