> Did you use cygwin or mingw?

i test using mingw, cygwin and linux.
issue above is with mingw.

This is what i sent to Øyvind.

if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src
-I../../src/target -DPKGDATADIR=\"/usr/local/share/openocd\"
-DPKGLIBDIR=\"/usr/local/lib/openocd\"    -O0 -g -Wall -MT jim-eventloop.o
-MD -MP -MF ".deps/jim-eventloop.Tpo" -c -o jim-eventloop.o jim-eventloop.c;
\
        then mv -f ".deps/jim-eventloop.Tpo" ".deps/jim-eventloop.Po"; else
rm -f ".deps/jim-eventloop.Tpo"; exit 1; fi
jim-eventloop.c:65:24: sys/select.h: No such file or directory
jim-eventloop.c: In function `Jim_ProcessEvents':
jim-eventloop.c:259: error: `fd_set' undeclared (first use in this function)
jim-eventloop.c:259: error: (Each undeclared identifier is reported only
once
jim-eventloop.c:259: error: for each function it appears in.)
jim-eventloop.c:259: error: parse error before "rfds"
jim-eventloop.c:266: warning: implicit declaration of function `FD_ZERO'
jim-eventloop.c:266: error: `rfds' undeclared (first use in this function)
jim-eventloop.c:267: error: `wfds' undeclared (first use in this function)
jim-eventloop.c:268: error: `efds' undeclared (first use in this function)
jim-eventloop.c:272: warning: dereferencing `void *' pointer
jim-eventloop.c:272: error: request for member `_file' in something not a
structure or union
jim-eventloop.c:275: warning: implicit declaration of function `FD_SET'
jim-eventloop.c:313: warning: implicit declaration of function `select'
jim-eventloop.c:323: warning: dereferencing `void *' pointer
jim-eventloop.c:323: error: request for member `_file' in something not a
structure or union
jim-eventloop.c:327: warning: implicit declaration of function `FD_ISSET'
jim-eventloop.c:352: warning: implicit declaration of function `FD_CLR'
make[1]: *** [jim-eventloop.o] Error 1
make[1]: Leaving directory `/home/spen/openocd/openocd/src/helper'
make: *** [all-recursive] Error 1

i can fix the errors (include replacements.h and cast Jim_FileEvent->handle)
but have no idea what it all should do.
should handle be a void* ?

one issue is we cannot use select on a std file descriptor, eg. stdin,
stdout etc.

Cheers
Spen

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to