+2002-04-25 Ken Raeburn <raeburn@mit.edu>
+
+ * fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
+ [GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return
+ value.
+
2002-04-24 Ken Raeburn <raeburn@mit.edu>
* configure.in: If the return type for gethostbyname_r can't be
(HP) = (gethostbyname_r((NAME), &my_h_ent, \
my_h_buf, sizeof (my_h_buf), &my_hp, \
&my_h_err) \
- ? &my_h_ent \
- : 0); \
+ ? 0 \
+ : &my_h_ent); \
(ERR) = my_h_err; \
}
#define GET_HOST_BY_ADDR(ADDR, ADDRLEN, FAMILY, HP, ERR) \
(HP) = (gethostbyaddr_r((ADDR), (ADDRLEN), (FAMILY), &my_h_ent, \
my_h_buf, sizeof (my_h_buf), &my_hp, \
&my_h_err) \
- ? &my_h_ent \
- : 0); \
+ ? 0 \
+ : &my_h_ent); \
(ERR) = my_h_err; \
}
#else