On 9:25:23 am 2005-04-27 "Eli Zaretskii" <[EMAIL PROTECTED]> wrote:
> >  From: =?iso-8859-1?Q?Jerker_B=E4ck?= <[EMAIL PROTECTED]>
> >  Cc: <[email protected]>
> >  Date: Wed, 27 Apr 2005 01:05:12 +0200
> >
> >  1) There is no unistd.h anywhere
>
> Okay, that explains many problems.
>
> I think the best solution for this is to add unistd.h to the
> w32/include directory.  NMakefile and build_w32.bat already set up the
> compiler to look into that directory for include files.
>
> So could you please show us the MSC prototypes of all the functions,
> which, according to your report and my analysis, should come from
> unistd.h?  I will then suggest a version of unistd.h to put into
> w32/include and ask you to try that.  Okay?
>

MinGW runtime includes the following unistd.h.  The file is PD so feel free
to use it.

<file name="unistd.h">
/*
 * This file is part of the Mingw32 package.
 *
 * unistd.h maps (roughly) to io.h
 */

#ifndef _UNISTD_H
#define _UNISTD_H

#include <io.h>
#include <process.h>

#define __UNISTD_GETOPT__
#include <getopt.h>
#undef __UNISTD_GETOPT__

#ifdef __cplusplus
extern "C" {
#endif

/* This is defined as a real library function to allow autoconf
   to verify its existence. */
int ftruncate(int, off_t);
__CRT_INLINE int ftruncate(int __fd, off_t __length)
{
  return _chsize (__fd, __length);
}

#ifdef __cplusplus
}
#endif

#endif /* _UNISTD_H */
</file>



Earnie

--
       MinGW - http://www.mingw.org/
        Wiki - http://www.mingw.org/MinGWiki/
  Bug Report - http://sourceforge.net/tracker/?group_id=2435&atid=102435
Submit Patch - http://sourceforge.net/tracker/?group_id=2435&atid=302435
  SF Project - http://sourceforge.net/projects/mingw
 Job Listing - http://sf.net/people/viewjob.php?group_id=2435&job_id=21643



_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to