[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Sat Apr 6 01:21:21 PDT 2013


On Sat, Apr 6, 2013 at 10:13 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
...
>> main.c:22: error: storage size of 't' isn't known
>> make: *** [OBJ.powerpc-ibm-aix5.3.0.0/main.o] Error 1
>
> In which directory? main.c could be anything?

Ah sorry: tools/timer/main.c

...
> Okay; "struct winsize" isn't actually specified by POSIX, but it
> should exist somewhere if TIOCGWINSZ is defined. Not necessarily in
> the same header as the TIOCGWINSZ definition. Again, it may be guarded
> by a #if/#ifdef.
>
> On Linux, it's defined in both asm-generic/termios.h (kernel header)
> and bits/ioctl-types.h (glibc header).

I found this:

/usr/include> grep TIOCGWINSZ */*
sys/ioctl.h: * TIOCSWINSZ and TIOCGWINSZ -- in fact they are defined to be the
sys/ioctl.h:#define     TIOCGSIZE       TIOCGWINSZ
sys/ioctl.h:#define     TIOCGWINSZ   _IOR('t', 104, struct winsize)
/* get window size */

Markus


More information about the grass-dev mailing list