Skip to content

Commit

Permalink
Remove pthread dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Dec 3, 2024
1 parent e3ca6af commit 44099d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ case ${host_os} in
;;
*)
AC_MSG_RESULT([${host_os}])
AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build libplist])])
AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build libplist])])
;;
esac
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
Expand Down Expand Up @@ -155,8 +153,8 @@ AC_ARG_WITH([tools],
AS_IF([test "x$build_tools" = "xyes"], [AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building plist tools])])
AM_CONDITIONAL(BUILD_TOOLS, test "x$build_tools" = "xyes")

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

AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
Expand Down
2 changes: 0 additions & 2 deletions src/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#ifdef WIN32
#include <windows.h>
#else
#include <pthread.h>
#endif

#include <node.h>
Expand Down

0 comments on commit 44099d4

Please sign in to comment.