Skip to content

Commit

Permalink
fixed scandir check on linux
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1041 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Nov 26, 2003
1 parent 3919247 commit 5f24584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions configure
Expand Up @@ -1329,7 +1329,7 @@ fi

fi

for ac_func in getcwd select socket strdup strerror
for ac_func in getcwd select strdup strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1336: checking for $ac_func" >&5
Expand Down Expand Up @@ -1397,15 +1397,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 @@ -138,15 +138,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 5f24584

Please sign in to comment.