Changes committed to git://oss.sgi.com/kenj/pcp.git dev
configure | 2 +-
configure.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 1a8772fe4a767692b8dd1f043f93f7acc5e43ef2
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon Nov 4 20:58:51 2013 +1100
configure.in - fix HAVE_CONST_DIRENT test
At some point either the gcc pixies messed with compile-time checking
or the pcp pixies changed the compilation flags so gcc does insane
compile-time checking.
The sample C code was generating an error because the first and second
arguments to scandir() were NULL. Don't even start to think about a
parallel universe in which this is ever a good idea!
The consequence was that HAVE_CONST_DIRENT is never set, even when
the scandir() callback routine should have a const struct dirent *
argument, so we assume struct dirent * and end up with compilation
errors on some platforms.
|