2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

AIX and Digital Unix compatibility fixes.

This commit is contained in:
Ted Lemon
2000-02-01 03:19:56 +00:00
parent fb6297b12b
commit cfdfb9f126
16 changed files with 57 additions and 71 deletions

View File

@@ -32,6 +32,7 @@ isc_result_t omapi_connect (omapi_object_t *c,
isc_result_t status;
omapi_connection_object_t *obj;
int flag;
socklen_t sl;
obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL);
if (!obj)
@@ -131,10 +132,10 @@ isc_result_t omapi_connect (omapi_object_t *c,
/* I don't know why this would fail, so I'm tempted not to test
the return value. */
hix = sizeof (obj -> local_addr);
sl = sizeof (obj -> local_addr);
if (getsockname (obj -> socket,
((struct sockaddr *)
&obj -> local_addr), &hix) < 0) {
&obj -> local_addr), &sl) < 0) {
}
if (fcntl (obj -> socket, F_SETFL, O_NONBLOCK) < 0) {