From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.comp.lib.gnulib.bugs Subject: Re: syncing Emacs from sources maintained elsewhere Date: Sat, 29 Jan 2011 12:24:02 +0200 Message-ID: <83r5bwgg8t.fsf@gnu.org> References: <4D2BA939.5090903@cs.ucla.edu> <4D413962.4060603@cs.ucla.edu> <201101271129.37521.bruno@clisp.org> <838vy5ibkp.fsf@gnu.org> <4D432FCD.5050303@cs.ucla.edu> <83zkqkhd0j.fsf@gnu.org> <4D4345C8.3040105@redhat.com> <83tygsgkot.fsf@gnu.org> <878vy4t5qn.fsf@latte.josefsson.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1296296634 24244 80.91.229.12 (29 Jan 2011 10:23:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 10:23:54 +0000 (UTC) Cc: bug-gnulib@gnu.org, emacs-devel@gnu.org To: Simon Josefsson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 11:23:49 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pj7y9-0002PF-7y for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 11:23:49 +0100 Original-Received: from localhost ([127.0.0.1]:53443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj7y8-0005fe-Ho for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 05:23:48 -0500 Original-Received: from [140.186.70.92] (port=43517 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj7xy-0005d5-TW for emacs-devel@gnu.org; Sat, 29 Jan 2011 05:23:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pj7xx-0003wE-Ru for emacs-devel@gnu.org; Sat, 29 Jan 2011 05:23:38 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pj7xv-0003vN-Ne; Sat, 29 Jan 2011 05:23:35 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LFS00M004NIZG00@a-mtaout21.012.net.il>; Sat, 29 Jan 2011 12:23:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.46.39]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LFS00MGZ4V8YP20@a-mtaout21.012.net.il>; Sat, 29 Jan 2011 12:23:33 +0200 (IST) In-reply-to: <878vy4t5qn.fsf@latte.josefsson.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135200 gmane.comp.lib.gnulib.bugs:25090 Archived-At: > From: Simon Josefsson > Cc: Eric Blake , bruno@clisp.org, eggert@cs.ucla.edu, > bug-gnulib@gnu.org, emacs-devel@gnu.org > Date: Sat, 29 Jan 2011 10:32:32 +0100 > > Maybe gnulib's posix library could be used here? I.e., ask MSVC users > to install that first, so that the system has proper getopt.h etc. > > Btw, in Libidn I ship a win32/ sub-directory that has MSVC project files > and hand-written header files (e.g., stdbool.h, unistd.h) because I > could never get gnulib and MSVC to co-exist. Emacs uses a combination of these two techniques, but until now we managed to have almost the same workarounds and headers for both MinGW and MSVC. E.g., unistd.h is not used at all (although MinGW does have it); instead, all the necessary stuff is defined in the Windows-specific config.h file. There's a Windows-specific nt/ subdirectory where we put headers and source files that define suitable replacements for missing Posix headers and functions. It would make sense to have MSVC-specific replacements there as well, once it becomes impossible to keep it and MinGW together. Thanks for the feedback.