]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix gnulib's lstat replacement in C++ namespace mode users/palves/stat
authorPedro Alves <palves@redhat.com>
Sun, 19 Jan 2020 19:58:56 +0000 (19:58 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 20 Jan 2020 15:39:33 +0000 (15:39 +0000)
commit929b345a6f4e41f48a44ca7e65b5fc03dc934e74
treec3c02fbb68b40f7792a95f26a6e21a3cdf89bece
parent36dc9e24472d1a5a3a3e08ecd139afbd3b0cf02b
Fix gnulib's lstat replacement in C++ namespace mode

Fixes:

 unittests/string_view-selftests.c: In member function 'gnulib::_gl_lstat_wrapper::operator gnulib::_gl_lstat_wrapper::type() const':
 unittests/string_view-selftests.c:11432:22: error: expected primary-expression before ';' token
      return ::rpl_stat;
       ^

The problem is that the lstat replacement depends on the stat
(function) declaration, which is only declared afterwards.  The fix is
simply to declare lstat after stat.
gnulib/import/sys_stat.in.h