@@ -216,10 +216,13 @@ AC_MSG_RESULT(libkern/OSAtomic.h) else AC_MSG_RESULT(none) AC_MSG_ERROR(No atomic operations found! Try --disable-threads.) fi +else + dnl We can only have one thread - therefore everything is atomic + AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations]) fi AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")