This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sleep, fstat problems with -mno-cygwin


I'm working with a very recent release (end of Jan 2001) 

I've been trying to get an application I've written "ported" from standard cygwin to a -mno-cygwin
(mingw) build.
I basically just added a -mno-cygwin to my CFLAGS in the makefile but needed more.

In the process I've had various problems dealing with file descriptors vs file Handles.

To get _get_osfhandle(fd) to work I needed -lmsvcrt in the link.

but I also had problems with fstat,
I saw http://sources.redhat.com/ml/cygwin/2001-02/msg01157.html

so I added -D__MSVCRT__ to CFLAGS also - This Worked!

So now I have 
CFLAGS =  -g -O2 -mno-cygwin -D__MSVCRT__
me_LDADD = getopt.o getopt1.o  -lmsvcrt

Is this the "Correct/Preferred" way to build with this version??

--------------------

But I have a problem with sleep because cygwin sleep() wants seconds
but mno-cygwin sleep() wants milliseconds (To match WIN32 Sleep?)
This seems wrong.

Is this a bug?

Thanks for your help
--	joel

S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]