Simplify the upgrade path handling from PPA.
[deb_libnfs.git] / aros / aros_compat.c
index 92da9a370c35d83172a316508ae96c27fbc1ad71..9b745e53a551bfa37d7f296a42d1391cedbcd134 100644 (file)
@@ -15,8 +15,6 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifdef AROS
-
 #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)
 {
-  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;
 }
 
-#endif
-