gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] glusterfs on NetBSD


From: Vijay Bellur
Subject: Re: [Gluster-devel] glusterfs on NetBSD
Date: Tue, 24 Aug 2010 23:35:46 +0530
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]