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 c104f6d3a1..fad26f3e94 100644 --- a/lib/libzpool/include/sys/zfs_context.h +++ b/lib/libzpool/include/sys/zfs_context.h @@ -205,7 +205,7 @@ _NOTE(CONSTCOND) } while (0) */ #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 */