Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
unixODBC
unixODBC-iaddr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File unixODBC-iaddr.patch of Package unixODBC
--- Drivers/Postgre7.1/socket.c +++ Drivers/Postgre7.1/socket.c @@ -100,7 +100,7 @@ { struct hostent *host; struct sockaddr_in sadr; -unsigned long iaddr; +struct in_addr iaddr; if (self->socket != -1) { self->errornumber = SOCKET_ALREADY_CONNECTED; @@ -113,8 +113,8 @@ /* If it is a valid IP address, use it. Otherwise use hostname lookup. */ - iaddr = inet_addr(hostname); - if (iaddr == INADDR_NONE) { + iaddr.s_addr = inet_addr(hostname); + if (iaddr.s_addr == INADDR_NONE) { host = gethostbyname(hostname); if (host == NULL) { self->errornumber = SOCKET_HOST_NOT_FOUND; --- Drivers/PostgreSQL/socket.c +++ Drivers/PostgreSQL/socket.c @@ -102,7 +102,7 @@ { struct hostent *host; struct sockaddr_in sadr; -unsigned long iaddr; +struct in_addr iaddr; if (self->socket != -1) { self->errornumber = SOCKET_ALREADY_CONNECTED; @@ -115,8 +115,8 @@ /* If it is a valid IP address, use it. Otherwise use hostname lookup. */ - iaddr = inet_addr(hostname); - if (iaddr == INADDR_NONE) { + iaddr.s_addr = inet_addr(hostname); + if (iaddr.s_addr == INADDR_NONE) { host = gethostbyname(hostname); if (host == NULL) { self->errornumber = SOCKET_HOST_NOT_FOUND;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor