[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: draft patch to import gnulib's filemode module into Emacs
From: |
Paul Eggert |
Subject: |
Re: draft patch to import gnulib's filemode module into Emacs |
Date: |
Sun, 20 Feb 2011 09:18:15 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
My filemode patch had a problem, in that it relied on an implicit
function declaration on many hosts. The following patch fixes this.
=== modified file 'src/dired.c'
--- src/dired.c 2011-02-20 10:53:22 +0000
+++ src/dired.c 2011-02-20 17:14:24 +0000
@@ -54,8 +54,6 @@
#include <sys/dir.h>
#include <sys/stat.h>
-#include <filemode.h>
-
#define DIRENTRY struct direct
extern DIR *opendir (char *);
@@ -63,6 +61,8 @@
#endif /* HAVE_DIRENT_H */
+#include <filemode.h>
+
#ifdef MSDOS
#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0)
#else