sleep, fstat problems with -mno-cygwin
Joel
joel_schantz@yahoo.com
Fri Feb 23 19:03:00 GMT 2001
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/octet-stream
Size: 1436 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010223/10a610ab/attachment.obj>
More information about the Cygwin
mailing list