Skip to content

Commit

Permalink
Fixed scandir again
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1044 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Nov 27, 2003
1 parent 3973d33 commit 927c308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -1398,15 +1398,15 @@ cat > conftest.$ac_ext <<EOF
int main() {
int file_select_directories(struct dirent *entry) {
int file_select_directories(const struct dirent *entry) {
return 0;
}
int main() {
char dir[]=".";
int count;
struct dirent **files;
scandir(dir, &files, file_select_directories, NULL);
scandir(dir, &files, file_select_directories, 0);
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -139,15 +139,15 @@ AC_MSG_CHECKING([for scandir])
AC_TRY_LINK([
#include <dirent.h>
], [
int file_select_directories(struct dirent *entry) {
int file_select_directories(const struct dirent *entry) {
return 0;
}

int main() {
char dir[]=".";
int count;
struct dirent **files;
scandir(dir, &files, file_select_directories, NULL);
scandir(dir, &files, file_select_directories, 0);
return 0;
}
], [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_SCANDIR])],
Expand Down

0 comments on commit 927c308

Please sign in to comment.