include winsock2.h
On Mon, 23 Jun 2008, Mariano Martinez Peck wrote:
> .libs/libpgsqlbac
> kend_la-pgsql_basic.o
> pgsql_basic.c:17:24: sys/select.h: No such file or directory
> pgsql_basic.c: In function `pgsql_odbx_result':
> pgsql_basic.c:318: error: `fd_set' undeclared (first use in this function)
> pgsql_basic.c:318: error: (Each undeclared identifier is reported only once
> pgsql_basic.c:318: error: for each function it appears in.)
> pgsql_basic.c:318: error: syntax error before "fds"
> pgsql_basic.c:326: warning: implicit declaration of function `FD_ZERO'
> pgsql_basic.c:326: error: `fds' undeclared (first use in this function)
> pgsql_basic.c:327: warning: implicit declaration of function `FD_SET'
> pgsql_basic.c:329: warning: implicit declaration of function `select'
> make[3]: *** [libpgsqlbackend_la-pgsql_basic.lo] Error 1
> make[3]: Leaving directory `/c/mariano/opendbx-1.3.10/backends/pgsql'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/mariano/opendbx-1.3.10/backends'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/mariano/opendbx-1.3.10'
> make: *** [all] Error 2
>
> If I see pgsql_basic.c (part of openDBX library), function pgsql_odbx_result
> I see:
>
> int fd;
> fd_set fds;
>
> if( ( fd = PQsocket( (PGconn*) handle->generic ) ) == -1 )
> {
> conn->errtype = -1;
> return -ODBX_ERR_BACKEND;
> }
>
> FD_ZERO( &fds );
> FD_SET( fd, &fds );
>
> Any ideas?
about select.h, i don't know. try to comment it for now.
Vincent Torri
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ MinGW-users mailing list MinGW-users@xxxxxxxxxxxxxxxxxxxxx You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users