summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-03-02 07:19:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-03 06:40:01 -0800
commit1ea072a05e98335af0fd6f86c9582ce04d262a4e (patch)
tree5208be51d7389e325efad44268fd99a209bd229a /xlators/performance
parentb4f5babd288d387611434e8a69b19401dd58ba52 (diff)
performance/io-threads: Support for Solaris.
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 621 (3.0.2 GlusterFS fails on Solaris 10) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=621
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/io-threads/src/io-threads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.h b/xlators/performance/io-threads/src/io-threads.h
index 3cd959069..3843791ed 100644
--- a/xlators/performance/io-threads/src/io-threads.h
+++ b/xlators/performance/io-threads/src/io-threads.h
@@ -35,7 +35,10 @@
#include "list.h"
#include <stdlib.h>
#include "locking.h"
+#include "compat.h"
+#ifndef GF_SOLARIS_HOST_OS
#include <semaphore.h>
+#endif
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))