Resolve dirname shadow conflict with /usr/include/libgen.h:27 dirname

This commit is contained in:
Brian Behlendorf 2008-12-16 14:29:35 -08:00
parent 206a3ac58c
commit 53c0cdbc42
1 changed files with 2 additions and 2 deletions

View File

@ -206,12 +206,12 @@ is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto)
* informative error message.
*/
static boolean_t
dir_is_empty(const char *dirname)
dir_is_empty(const char *dirn)
{
DIR *dirp;
struct dirent64 *dp;
if ((dirp = opendir(dirname)) == NULL)
if ((dirp = opendir(dirn)) == NULL)
return (B_TRUE);
while ((dp = readdir64(dirp)) != NULL) {