[Gluster-devel] glusterfs on NetBSD

Vijay Bellur vijay at gluster.com
Tue Aug 24 18:05:46 UTC 2010


On Tuesday 24 August 2010 09:18 PM, Emmanuel Dreyfus wrote:
> In order to fix that, I can add basename_r() and dirname_r(), and
> do this:
> #ifdef __NetBSD__
> #define basename(x) basename_r(x)
> #define dirname(x) dirname_r(x)
> #endif /* __NetBSD__ */
>
> The question is: where in the code is the prefered way for adding
> basename_r() and dirname_r()? And in what header should I add the
> defines above?
>    

basename_r() and dirname_r() can be added to compat.c in libglusterfs/src.
The above defines can be added to compat.h in the same directory.
Most conditionally compilable code in glusterfs is present in the 
compat.[ch] files.

Regards,
Vijay





More information about the Gluster-devel mailing list