~ubuntu-branches/ubuntu/precise/crossroads/precise

« back to all changes in this revision

Viewing changes to xr/sys/inetaton.cc

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2010-07-05 16:27:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100705162700-0g08tfav8ee9y51u
Tags: upstream-2.65
ImportĀ upstreamĀ versionĀ 2.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "sys"
 
2
 
 
3
#ifndef HAVE_INET_ATON
 
4
int inet_aton (char const *name, struct in_addr *addr) {
 
5
    in_addr_t a = inet_addr (name); 
 
6
    addr->s_addr = a; 
 
7
    return a != (in_addr_t)-1; 
 
8
}
 
9
#endif