summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-12-03 02:31:03 +0100
committerGravatar Nikias Bassen2024-12-03 02:31:03 +0100
commit44099d4b79c8d6a7d599d652ebef62db8dae6696 (patch)
tree402e253465032f72fe6af2fa62816360abf273a2
parente3ca6af2c580c0b748a5635c15b973094765abbf (diff)
downloadlibplist-44099d4b79c8d6a7d599d652ebef62db8dae6696.tar.gz
libplist-44099d4b79c8d6a7d599d652ebef62db8dae6696.tar.bz2
Remove pthread dependency
-rw-r--r--configure.ac6
-rw-r--r--src/plist.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index fc0d8c4..b6bf2e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,8 +71,6 @@ case ${host_os} in
71 ;; 71 ;;
72 *) 72 *)
73 AC_MSG_RESULT([${host_os}]) 73 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])])
76 ;; 74 ;;
77esac 75esac
78AM_CONDITIONAL(WIN32, test x$win32 = xtrue) 76AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
@@ -155,8 +153,8 @@ AC_ARG_WITH([tools],
155AS_IF([test "x$build_tools" = "xyes"], [AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building plist tools])]) 153AS_IF([test "x$build_tools" = "xyes"], [AC_DEFINE(BUILD_TOOLS, 1, [Define if we are building plist tools])])
156AM_CONDITIONAL(BUILD_TOOLS, test "x$build_tools" = "xyes") 154AM_CONDITIONAL(BUILD_TOOLS, test "x$build_tools" = "xyes")
157 155
158AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing $PTHREAD_CFLAGS") 156AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing")
159GLOBAL_LDFLAGS="$PTHREAD_LIBS" 157GLOBAL_LDFLAGS=""
160 158
161AC_ARG_ENABLE(debug, 159AC_ARG_ENABLE(debug,
162AS_HELP_STRING([--enable-debug], 160AS_HELP_STRING([--enable-debug],
diff --git a/src/plist.c b/src/plist.c
index 0d4e077..514c8e5 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -39,8 +39,6 @@
39 39
40#ifdef WIN32 40#ifdef WIN32
41#include <windows.h> 41#include <windows.h>
42#else
43#include <pthread.h>
44#endif 42#endif
45 43
46#include <node.h> 44#include <node.h>