Fix adb GCC build (for google3).

Allow adb to build using gcc by explicitly using global scope for the
type for pollfd. An alternative would be to rename the pollfd field to
different, but I did not have a better name in mind.

Change-Id: I7925df1dca7e1acc5a289256f228e5fc3755e86e
This commit is contained in:
Joon :ee 2015-11-04 13:17:51 -05:00 committed by Elliott Hughes
parent ff2e26b239
commit c288d48513

View file

@ -54,7 +54,7 @@ int SHELL_EXIT_NOTIFY_FD = -1;
struct PollNode {
fdevent* fde;
pollfd pollfd;
::pollfd pollfd;
PollNode(fdevent* fde) : fde(fde) {
memset(&pollfd, 0, sizeof(pollfd));