nanogui: Help pls, I must debug ntetris.c, but...
Subject:
Re: [nanogui] Help pls, I must debug ntetris.c, but...
From:
Alex Holden ####@####.####
Date:
13 Apr 2002 07:24:16 -0000
Message-Id: <3CB7DB55.2070402@linuxhacker.org>
Gleb wrote:
> 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;
It sounds like DJGPP doesn't define struct timespec in time.h. Grep
through your include directory until you find the header that it's
defined in, and include that in ntetris.c. Alternatively, you could try
changing "#undef HAVE_USLEEP" in ntetris.h to "#define HAVE_USLEEP"
which might work, depending on whether DJGPP has usleep() or not.
--
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer