错误信息如下:
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from external/iproute2/tc/tc.c:18:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
2 warnings generated.
target C: tc <= external/iproute2/tc/tc_qdisc.c
target C: tc <= external/iproute2/tc/q_cbq.c
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/tc_intermediates/tc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from external/iproute2/tc/tc_qdisc.c:15:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
In file included from bionic/libc/kernel/uapi/linux/signal.h:21:0,
from bionic/libc/include/signal.h:45,
from bionic/libc/include/sys/select.h:35,
from bionic/libc/include/unistd.h:34,
from external/iproute2/tc/q_cbq.c:15:
bionic/libc/include/signal.h:85:18: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
sighandler_t sa_handler;
^
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/tc_intermediates/tc_qdisc.o] Error 1
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/tc_intermediates/q_cbq.o] Error 1
有朋友碰到么?signal.h如下:
....
typedef __sighandler_t sig_t; /* BSD compatibility. */
typedef __sighandler_t sighandler_t; /* glibc compatibility. */
#define si_timerid si_tid /* glibc compatibility. */
#if defined(__LP64__)
struct sigaction {
unsigned int sa_flags;
union {
sighandler_t sa_handler;
void (*sa_sigaction)(int, struct siginfo*, void*);
};
sigset_t sa_mask;
void (*sa_restorer)(void);
};
#elif defined(__mips__)
struct sigaction {
unsigned int sa_flags;
union {
sighandler_t sa_handler;
void (*sa_sigaction) (int, struct siginfo*, void*);
};
sigset_t sa_mask;
};
#endif
....