emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recent commit broke src/dired.c on OSX


From: Chad Brown
Subject: Re: recent commit broke src/dired.c on OSX
Date: Sun, 25 Jul 2010 19:46:13 -0700

Jan seems to be correct, that it's simply an issue of detecting dirent.h 
(instead of guessing via SYSV_SYSTEM_DIR).  In the meantime, the following 
trivial patch fixes the problem on OSX.

=== modified file 'src/dired.c'
*** src/dired.c 2010-07-25 00:20:51 +0000
--- src/dired.c 2010-07-26 02:21:58 +0000
***************
*** 48,59 ****
     Since applying strlen to the name always works, we'll just do that.  */
  #define NAMLEN(p) strlen (p->d_name)
  
! #ifdef SYSV_SYSTEM_DIR
  
  #include <dirent.h>
  #define DIRENTRY struct dirent
  
! #else /* not SYSV_SYSTEM_DIR */
  
  #ifdef MSDOS
  #include <dirent.h>
--- 48,59 ----
     Since applying strlen to the name always works, we'll just do that.  */
  #define NAMLEN(p) strlen (p->d_name)
  
! #if defined(SYSV_SYSTEM_DIR) || defined(DARWIN_OS)
  
  #include <dirent.h>
  #define DIRENTRY struct dirent
  
! #else /* not (SYSV_SYSTEM_DIR || DARWIN_OS) */
  
  #ifdef MSDOS
  #include <dirent.h>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]