diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 5e9d97b05d..744dbfce30 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -153,3 +153,5 @@ libzpool_la_SOURCES = \ ${top_srcdir}/module/zfs/include/sys/fm/protocol.h \ ${top_srcdir}/module/zfs/include/sys/fm/util.h \ ${top_srcdir}/module/zfs/include/sys/fm/fs/zfs.h + +libzpool_la_LDFLAGS = -pthread diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h index 589ef6c3e0..c2ea43b63b 100644 --- a/lib/libzpool/include/sys/zfs_context.h +++ b/lib/libzpool/include/sys/zfs_context.h @@ -147,7 +147,7 @@ extern void vpanic(const char *, __va_list); */ #define TS_MAGIC 0x72f158ab4261e538ull #define TS_RUN 0x00000002 -#ifdef _linux_ +#ifdef __linux__ #define STACK_SIZE 8192 /* Linux x86 and amd64 */ #else #define STACK_SIZE 24576 /* Solaris */