nanogui: Help pls, I must debug ntetris.c, but...


Previous by date: 13 Apr 2002 06:39:42 -0000 what's going on flnx project, "=?ks_c_5601-1987?B?w9a8ug==?="
Next by date: 13 Apr 2002 06:39:42 -0000 Re: Help pls, I must debug ntetris.c, but..., Alex Holden
Previous in thread:
Next in thread: 13 Apr 2002 06:39:42 -0000 Re: Help pls, I must debug ntetris.c, but..., Alex Holden

Subject: Help pls, I must debug ntetris.c, but...
From: Gleb ####@####.####
Date: 13 Apr 2002 06:39:42 -0000
Message-Id: <1243387958.20020413100849@rambler.ru>

Hello Nano X,

say me please, why compiler wrote to me following message:

Compiling ntetris.c ...
gcc -c   -DMWPIXEL_FORMAT=MWPF_PALETTE -DDOS_DJGPP=1 -D_NAIVE_DOS_REGS=1 -DMSDOS=1   -I. -I../../include -Wall -O3 -o ntetris.o ntetris.c
ntetris.c: In function `msleep':
ntetris.c:114: storage size of `req' isn't known
ntetris.c:114: storage size of `rem' isn't known

--------Copy from source ntetris.c------------------
void msleep(long ms)
{
        struct timespec req, rem;

        req.tv_sec = ms / 1000000;
        req.tv_nsec = (ms % 1000000) * 1000000;

        while(nanosleep(&req, &rem) == -1) {
                if(errno == EINTR) {
                        req.tv_sec = rem.tv_sec;
                        req.tv_nsec = rem.tv_nsec;
                        continue;
                } else {
                        perror("nanosleep() failed");
                        return;
                }
        }
}
---------End of copy---------------------------------
-- 
Best regards,
 Gleb                          ####@####.####




Previous by date: 13 Apr 2002 06:39:42 -0000 what's going on flnx project, "=?ks_c_5601-1987?B?w9a8ug==?="
Next by date: 13 Apr 2002 06:39:42 -0000 Re: Help pls, I must debug ntetris.c, but..., Alex Holden
Previous in thread:
Next in thread: 13 Apr 2002 06:39:42 -0000 Re: Help pls, I must debug ntetris.c, but..., Alex Holden


Powered by ezmlm-browse 0.20.