expected specifier-qualifier-list ip.h

Hi all, I've got this error...
In file included from t.c:10:
ip.h:148: error: expected specifier-qualifier-list before 'n_time'
Below I posted scrap of code where it's defined.
1
2
3
4
5
6
7
8
147:    union ipt_timestamp {
148:             n_time ipt_time[1];
149:             struct ipt_ta {
150:                    struct in_addr ipt_addr;
151:                    n_time ipt_time;
152:             } ipt_ta[1] __attribute__((__packed__));
153:    } ipt_timestamp __attribute__((__packed__));
154:} __attribute__((__packed__));

I tried fixit like this, but take nothing positive effect.
1
2
typedef unsigned int n_time;
typedef u_int32_t n_time;

Tell me something how to improve it stiff.
I take it this code is taken from the header file of a library.

You can't just guess what type to use. If this code is from a library, then there must be another header file in that library that defines n_time.

Try this:
http://www.reactos.org/generated/doxygen/d9/dce/in__systm_8h.html#3111f0af6c8caa9e3c3c10fc724890ea
Last edited on
Topic archived. No new replies allowed.