David Robinow wrote:
Recent changes to fileio.c, editfns.c, etc. have broken the MS Windows
build.  Although nt/inc/pwd.h exists, configure.bat does not detect
it.
HAVE_PWD_H, of course, can be unconditionally defined but I'm not
sure exactly where to do it so I'm not including a patch.
 However, conditionalizing the   #include <pwd.h> doesn't seem right
to me, unless the use of  "struct passwd" is also conditionalized.  As
it is now, if pwd.h is not included, the code won't compile.

HAVE_*_H are #defined in ms-w32.h (and #undefined in config.nt for good karma). This patch fixes the build. -Dave

Index: nt/config.nt
===================================================================
RCS file: /cvsroot/emacs/emacs/nt/config.nt,v
retrieving revision 1.19
diff -u -r1.19 config.nt
--- nt/config.nt        1 Sep 2003 15:45:46 -0000       1.19
+++ nt/config.nt        22 Apr 2005 02:11:04 -0000
@@ -139,6 +139,7 @@
#undef HAVE_TERMIOS_H
#undef HAVE_LIMITS_H
#undef HAVE_STRING_H
+#undef HAVE_PWD_H
#undef STDC_HEADERS
#undef TIME_WITH_SYS_TIME

Index: src/s/ms-w32.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/s/ms-w32.h,v
retrieving revision 1.31
diff -u -r1.31 ms-w32.h
--- src/s/ms-w32.h      15 Feb 2005 23:14:05 -0000      1.31
+++ src/s/ms-w32.h      22 Apr 2005 02:14:16 -0000
@@ -230,6 +230,7 @@
#undef  HAVE_TERMIOS_H
#define HAVE_LIMITS_H 1
#define HAVE_STRING_H 1
+#define HAVE_PWD_H 1
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to