X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: struct passwd problem : running on XP Date: Tue, 16 Jan 2007 13:04:20 -0000 Message-ID: <035201c7396e$d62f2c30$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 16 January 2007 12:53, DEMARCHE wrote: > Thank you all for your help and support. > > To Corinna : > well, my program was designed for being compiled even on Unix and Windows > platform. > As far as I understand, /etc/passwd file may be designed differently > depending on the system. On windows, "differently" means "non-existent". > To Dave : > Yes, the use of mno-cygwin option seems to call a bad uid_t definition > found on mingw/sys/types.h file. > Is there a way to call another types.h file without modifying pwd.h header ? No, there is not, and that is because the pwd.h header does not go with mingw. It is for cygwin only. Mingw does not provide pwd.h. > Which definition of uid_t is correct ? None. Mingw does not support uid_t. Mingw does not implement getpwent. You cannot do any of this stuff with mingw. (PS. This is not a mingw mailing list. Mingw programming questions should go to the mingw mailing list. When you use -mno-cygwin to compile, you are using mingw, not cygwin.) cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/