aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorJan D2010-07-29 22:01:08 +0200
committerJan D2010-07-29 22:01:08 +0200
commit1c97e8579359838ceeb50694a635392e4abfdd91 (patch)
tree3e72825ef63f7f0e04a262050078da624034ef25 /src/sysdep.c
parent1b231651ce7fd7c47a8ed3fbe8f2ca72f8339964 (diff)
downloademacs-1c97e8579359838ceeb50694a635392e4abfdd91.tar.gz
emacs-1c97e8579359838ceeb50694a635392e4abfdd91.zip
Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf
* configure.in: Check for dirent.h * dired.c, sysdep.c: test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/msdos.h, s/usg5-4.h: don't define SYSV_SYSTEM_DIR * sed2v2.inp (HAVE_DIRENT_H): Edit to 1
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index d720c7c5811..c5b0cb361db 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2447,7 +2447,7 @@ croak (char *badfunc)
2447 2447
2448/* Directory routines for systems that don't have them. */ 2448/* Directory routines for systems that don't have them. */
2449 2449
2450#ifdef SYSV_SYSTEM_DIR 2450#ifdef HAVE_DIRENT_H
2451 2451
2452#include <dirent.h> 2452#include <dirent.h>
2453 2453
@@ -2464,7 +2464,7 @@ closedir (DIR *dirp /* stream from opendir */)
2464 return rtnval; 2464 return rtnval;
2465} 2465}
2466#endif /* not HAVE_CLOSEDIR */ 2466#endif /* not HAVE_CLOSEDIR */
2467#endif /* SYSV_SYSTEM_DIR */ 2467#endif /* HAVE_DIRENT_H */
2468 2468
2469 2469
2470int 2470int