Date: Mon, 18 May 2009 17:25:24 +0530 From: "Anand V. Avati" To: reviews@gluster.com Subject: [PATCH] workaround for not including sys/cdefs.h -- including sys/cdefs.h breaks build on solaris and other platforms --- libglusterfsclient/src/libglusterfsclient.h | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h index 1c2441b..5376985 100755 --- a/libglusterfsclient/src/libglusterfsclient.h +++ b/libglusterfsclient/src/libglusterfsclient.h @@ -20,7 +20,22 @@ #ifndef _LIBGLUSTERFSCLIENT_H #define _LIBGLUSTERFSCLIENT_H -#include +#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 -- 1.6.0.3 -- Anand V. Avati gpg --keyserver pgp.mit.edu --recv-keys 0xCBFFAC67 http://80x25.org/~avati