repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make adjustments for v6 of the qemu NFS driver
[deb_libnfs.git]
/
aros
/
aros_compat.c
diff --git
a/aros/aros_compat.c
b/aros/aros_compat.c
index 92da9a370c35d83172a316508ae96c27fbc1ad71..9b745e53a551bfa37d7f296a42d1391cedbcd134 100644
(file)
--- a/
aros/aros_compat.c
+++ b/
aros/aros_compat.c
@@
-15,8
+15,6
@@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef AROS
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-78,8
+76,11
@@
void aros_freeaddrinfo(struct addrinfo *res)
int aros_inet_pton(int af, char *src, void *dst)
{
int aros_inet_pton(int af, char *src, void *dst)
{
- printf("No inet_pton yet");
- exit(10);
+ struct sockaddr_in sin;
+
+ sin.sin_addr.s_addr = inet_addr(src);
+ memcpy(dst, &sin.sin_addr.s_addr, sizeof(sin.sin_addr.s_addr));
+ return 1;
}
}
@@
-177,5
+178,3
@@
int aros_poll(struct pollfd *fds, unsigned int nfds, int timo)
return rc;
}
return rc;
}
-#endif
-