summaryrefslogtreecommitdiff
path: root/src/xrdb.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-21 17:55:20 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-21 17:55:20 -0800
commitf68c809d7e91fcde5ee2e4f7f15def3d7e48b720 (patch)
tree9df8577ff5f281f066f778dee44bdb839eb13daf /src/xrdb.c
parent5ecec6a7f4a1ce83abd53a14fba7f51b668c6336 (diff)
downloademacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.tar.gz
[ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this. * Makefile.in (GNULIB_MODULES): Add sys_stat. * configure.in: Check for lstat and set HAVE_LSTAT=0 if not. Pretend to be using the gnulib lstat module for benefit of sys/stat.h. * configure, lib/Makefile.in, lib/gnulib.mk: Regenerate. [lib-src/ChangeLog] Assume S_ISLNK etc. work, since gnulib supports this. * etags.c (S_ISREG): Remove. [src/ChangeLog] Assume S_ISLNK etc. work, since gnulib supports this. * config.in: Regenerate. * dired.c (lstat): Remove. (file_name_completion): Assume S_ISDIR works. (file_name_completion_stat): Assume S_ISLNK works. Do not bother calling stat unless lstat says it's a symlink. * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove. (Fcopy_file): Assume S_ISREG and S_ISLNK work. (check_writable, Ffile_writable_p, Fset_file_times): Assume S_ISDIR works. (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether fifos exist. (Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works. * filelock.c (S_ISLNK): Remove. * lread.c (openp): Assume S_ISDIR works. * xrdb.c (S_ISDIR): Remove.
Diffstat (limited to 'src/xrdb.c')
-rw-r--r--src/xrdb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index 01714900752..9fb3f3474fb 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -38,10 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#include <sys/stat.h>
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
-
#include "lisp.h"
#ifdef USE_MOTIF
@@ -764,4 +760,3 @@ main (argc, argv)
XCloseDisplay (display);
}
#endif /* TESTRM */
-