You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2017/01/12 10:49:17 UTC

celix git commit: CELIX-387: Adds pthread.h include in bunlde_archive.c to try to remove compile error in travis for mac osx

Repository: celix
Updated Branches:
  refs/heads/develop 147e8bfed -> bd0e89e13


CELIX-387: Adds pthread.h include in bunlde_archive.c to try to remove compile error in travis for mac osx


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/bd0e89e1
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/bd0e89e1
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/bd0e89e1

Branch: refs/heads/develop
Commit: bd0e89e1363f7173c4e6bcce17be6cc96183494e
Parents: 147e8bf
Author: Pepijn Noltes <pe...@gmail.com>
Authored: Thu Jan 12 11:53:45 2017 +0100
Committer: Pepijn Noltes <pe...@gmail.com>
Committed: Thu Jan 12 11:53:45 2017 +0100

----------------------------------------------------------------------
 framework/private/src/bundle_archive.c | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/bd0e89e1/framework/private/src/bundle_archive.c
----------------------------------------------------------------------
diff --git a/framework/private/src/bundle_archive.c b/framework/private/src/bundle_archive.c
index 3d0513d..6033298 100644
--- a/framework/private/src/bundle_archive.c
+++ b/framework/private/src/bundle_archive.c
@@ -28,6 +28,13 @@
 #include <string.h>
 #include <time.h>
 #include <sys/stat.h>
+
+#ifdef __APPLE__
+//FIXME: compiling using travix and max osx is giving compile error for unknown type name  '__darwin_pthread_mutex_t'
+//including pthread.h to remove compile error
+#include <pthread.h>
+#endif
+
 #include <dirent.h>
 #include <unistd.h>