Skip to content

Commit 44099d4

Browse files
committed
Remove pthread dependency
1 parent e3ca6af commit 44099d4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

configure.ac

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ case ${host_os} in
7171
;;
7272
*)
7373
AC_MSG_RESULT([${host_os}])
74-
AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])])
75-
AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])])
7674
;;
7775
esac
7876
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
@@ -155,8 +153,8 @@ AC_ARG_WITH([tools],
155153
AS_IF([test "x$build_tools" = "xyes"], [AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building plist tools])])
156154
AM_CONDITIONAL(BUILD_TOOLS, test "x$build_tools" = "xyes")
157155

158-
AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing $PTHREAD_CFLAGS")
159-
GLOBAL_LDFLAGS="$PTHREAD_LIBS"
156+
AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing")
157+
GLOBAL_LDFLAGS=""
160158

161159
AC_ARG_ENABLE(debug,
162160
AS_HELP_STRING([--enable-debug],

src/plist.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939

4040
#ifdef WIN32
4141
#include <windows.h>
42-
#else
43-
#include <pthread.h>
4442
#endif
4543

4644
#include <node.h>

0 commit comments

Comments
 (0)