From: David Hunter <hunterd42@comcast.net>
Cc: emacs-devel@gnu.org
Subject: Re: HAVE_PWD_H
Date: Thu, 21 Apr 2005 22:43:57 -0400 [thread overview]
Message-ID: <426864ED.7050806@comcast.net> (raw)
In-Reply-To: <4eb0089f05042106024fea61b5@mail.gmail.com>
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
next prev parent reply other threads:[~2005-04-22 2:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 13:02 HAVE_PWD_H David Robinow
2005-04-22 2:43 ` David Hunter [this message]
2005-04-22 22:35 ` HAVE_PWD_H Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=426864ED.7050806@comcast.net \
--to=hunterd42@comcast.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).