TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
gcl (2.6.12-117) unstable; urgency=medium
* Version_2.6.13pre114
Gbp-Pq: Name Version_2.6.13pre114
/* end confdefs.h. */
#include <dirent.h>
+ #include <string.h>
int
main (void)
{
- struct dirent d;
- return d.d_type=0;
+ struct dirent *d;
+ DIR *r=opendir("./");
+ for (;(d=readdir(r)) && strcmp("configure",d->d_name););
+ return d && d->d_type==DT_REG ? 0 : -1;
;
return 0;
[AC_LANG_PROGRAM(
[[
#include <dirent.h>
+ #include <string.h>
]],
[[
- struct dirent d;
- return d.d_type=0;
+ struct dirent *d;
+ DIR *r=opendir("./");
+ for (;(d=readdir(r)) && strcmp("configure",d->d_name););
+ return d && d->d_type==DT_REG ? 0 : -1;
]])],
[AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_D_TYPE,1,[have struct dirent d_type field])],
AC_MSG_RESULT([no]),AC_MSG_RESULT([no])))