From 85066e4acf8cddc7be1675995774dba7732c3179 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 10 Dec 2008 14:39:52 -0800 Subject: [PATCH 1/2] Remove unneeded includes --- zfs/lib/libspl/strlcat.c | 1 - zfs/lib/libspl/strlcpy.c | 1 - zfs/lib/libspl/strnlen.c | 1 - 3 files changed, 3 deletions(-) diff --git a/zfs/lib/libspl/strlcat.c b/zfs/lib/libspl/strlcat.c index b19aa0865d..4b3113cae0 100644 --- a/zfs/lib/libspl/strlcat.c +++ b/zfs/lib/libspl/strlcat.c @@ -27,7 +27,6 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include -#include /* * Appends src to the dstsize buffer at dst. The append will never diff --git a/zfs/lib/libspl/strlcpy.c b/zfs/lib/libspl/strlcpy.c index 44a6a12e2f..737c5d6926 100644 --- a/zfs/lib/libspl/strlcpy.c +++ b/zfs/lib/libspl/strlcpy.c @@ -27,7 +27,6 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include -#include /* * Copies src to the dstsize buffer at dst. The copy will never diff --git a/zfs/lib/libspl/strnlen.c b/zfs/lib/libspl/strnlen.c index 02ce1708c0..61962cb31a 100644 --- a/zfs/lib/libspl/strnlen.c +++ b/zfs/lib/libspl/strnlen.c @@ -27,7 +27,6 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include -#include /* * Returns the number of non-NULL bytes in string argument, From 2a7a475196fd324f2e9981ecbe938b2dea18a9c3 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 10 Dec 2008 14:42:09 -0800 Subject: [PATCH 2/2] Add getexecname to Makefiles --- zfs/lib/libspl/Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zfs/lib/libspl/Makefile.in b/zfs/lib/libspl/Makefile.in index 0af8bf556e..a985a554ae 100644 --- a/zfs/lib/libspl/Makefile.in +++ b/zfs/lib/libspl/Makefile.in @@ -1,5 +1,6 @@ subdir-m += include -DISTFILES = list.c mkdirp.c strlcpy.c strlcat.c strnlen.c u8_textprep.c +DISTFILES = list.c mkdirp.c strlcpy.c strlcat.c strnlen.c +DISTFILES += u8_textprep.c getexecname.c LIBRARY := libspl @@ -21,3 +22,5 @@ ${LIBRARY}-objs += list.o ${LIBRARY}-objs += strlcat.o ${LIBRARY}-objs += strnlen.o ${LIBRARY}-objs += u8_textprep.o +${LIBRARY}-objs += getexecname.o +