summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-05-18 17:24:16 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-18 17:24:39 +0530
commita5301c874f978570187c3543b0c3a4ceba143c25 (patch)
tree5bb59be02f43668d9c40a7a2b97409fa7ff4c07b
parent0346e3e889d854f6f96d9f9b162a8d65ddb35f52 (diff)
workaround for not including sys/cdefs.h -- including sys/cdefs.h breaks build on solaris and other platforms
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 1c2441b2b..5376985db 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -20,7 +20,22 @@
#ifndef _LIBGLUSTERFSCLIENT_H
#define _LIBGLUSTERFSCLIENT_H
-#include <sys/cdefs.h>
+#ifndef __BEGIN_DECLS
+#ifdef __cplusplus
+#define __BEGIN_DECLS extern "C" {
+#else
+#define __BEGIN_DECLS
+#endif
+#endif
+
+#ifndef __END_DECLS
+#ifdef __cplusplus
+#define __END_DECLS }
+#else
+#define __END_DECLS
+#endif
+#endif
+
__BEGIN_DECLS