[Top][All Lists]
[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>
- recent commit broke src/dired.c on OSX, Randal L. Schwartz, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Randal L. Schwartz, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Randal L. Schwartz, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Chad Brown, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/25
- Re: recent commit broke src/dired.c on OSX,
Chad Brown <=
- Re: recent commit broke src/dired.c on OSX, Chad Brown, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/25
- Re: recent commit broke src/dired.c on OSX, David Kastrup, 2010/07/26
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/26
- Re: recent commit broke src/dired.c on OSX, Jan Djärv, 2010/07/26
- Re: recent commit broke src/dired.c on OSX, Jan Djärv, 2010/07/26
- Re: recent commit broke src/dired.c on OSX, Eli Zaretskii, 2010/07/26
- Re: recent commit broke src/dired.c on OSX, Chad Brown, 2010/07/27
- Re: recent commit broke src/dired.c on OSX, Juanma Barranquero, 2010/07/27
- Re: recent commit broke src/dired.c on OSX, Óscar Fuentes, 2010/07/27