summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-31 13:44:17 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-31 13:44:17 +0200
commitd2b0696d8fa0ce47e0bc525581b6b9254637984b (patch)
tree1c969b1005256bb47e1791ca919497f3276d00b6 /src
parent038f9a5b1197b4f92c85d0c7d2cfd672589c2231 (diff)
downloadwolfbones-d2b0696d8fa0ce47e0bc525581b6b9254637984b.tar.gz
wolfbones-d2b0696d8fa0ce47e0bc525581b6b9254637984b.tar.bz2
created subdir for threading stuff, moved mutex there
Diffstat (limited to 'src')
-rw-r--r--src/GNUmakefile5
-rw-r--r--src/Makefile.W322
-rw-r--r--src/port/string.c2
-rw-r--r--src/threads/mutex.c (renamed from src/mutex.c)2
4 files changed, 7 insertions, 4 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index 8fc202f..64e2394 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -27,7 +27,7 @@ SERVICE_OBJS = \
service/service.o
THREADING_OBJS = \
- mutex.o
+ threads/mutex.o
OBJS = \
$(PORT_OBJS) \
@@ -67,6 +67,9 @@ local_clean:
-@rm -f daemon/*.bak
-@rm -f daemon/*~
-@rm -f daemon/*.d
+ -@rm -f threads/*.bak
+ -@rm -f threads/*~
+ -@rm -f threads/*.d
-@rm -f libwolf.a
local_distclean:
diff --git a/src/Makefile.W32 b/src/Makefile.W32
index 5d46c75..10d9295 100644
--- a/src/Makefile.W32
+++ b/src/Makefile.W32
@@ -25,7 +25,7 @@ SERVICE_OBJS = \
service\service.obj
THREADING_OBJS = \
- mutex.obj
+ threads\mutex.obj
OBJS = \
$(PORT_OBJS) \
diff --git a/src/port/string.c b/src/port/string.c
index 83b1daa..398788c 100644
--- a/src/port/string.c
+++ b/src/port/string.c
@@ -47,7 +47,7 @@ char *wolf_port_strdup( const char *s ) {
#include "port/stdbool.h" /* for bool */
#include <sys/types.h> /* for size_t */
#include <errno.h> /* for errno */
-#include "mutex.h" /* for mutexes */
+#include "threads/mutex.h" /* for mutexes */
static bool mutex_initialized = false;
static wolf_mutex_t mutex;
diff --git a/src/mutex.c b/src/threads/mutex.c
index 573dc2c..509eb51 100644
--- a/src/mutex.c
+++ b/src/threads/mutex.c
@@ -16,7 +16,7 @@
*/
#include "errors.h"
-#include "mutex.h"
+#include "threads/mutex.h"
#if defined HAVE_PTHREADS