[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib 'unistd.h' bug?? for the symbol 'fchdir' (build 3.3.51 on MinGW)
From: |
Tatsuro MATSUOKA |
Subject: |
gnulib 'unistd.h' bug?? for the symbol 'fchdir' (build 3.3.51 on MinGW) |
Date: |
Thu, 25 Mar 2010 16:07:37 +0900 (JST) |
Hello
In compiling file-ops.cc error concerning to 'fchdir' occurred.
../libgnu/unistd.h:664:1: error: 'fchdir' was not declared in this scope
In /libgnu/unistd.h, there found
_GL_FUNCDECL_RPL (fchdir, int, (int /*fd*/));
_GL_CXXALIAS_RPL (fchdir, int, (int /*fd*/));
However in fchdir.c fchdir in gnulib is described as
int
fchdir (int fd)
{
const char *name = _gl_directory_name (fd);
return name ? chdir (name) : -1;
}
The 'fchdir' but not 'rpl_fchdi' is used.
I replaced
_GL_FUNCDECL_RPL (fchdir, int, (int /*fd*/));
_GL_CXXALIAS_RPL (fchdir, int, (int /*fd*/));
with
_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/));
_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/));
The error was disappeared and dir-ops.cc was complied successfully.
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnulib 'unistd.h' bug?? for the symbol 'fchdir' (build 3.3.51 on MinGW),
Tatsuro MATSUOKA <=