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


_______________________________________________
Gluster-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/gluster-devel

Reply via email to