On Mon, Jul 4, 2011 at 8:05 PM, ahmad javadi
<seyyedahmad.jav...@gmail.com> wrote:
> hi
> I use " inet_aton"  function in the kernel socket programming but i have the
> following warrning:
> "crypto.c:63: warning: implicit declaration of function 'inet_aton'
> crypto.c:63: warning: nested extern declaration of  'inet_aton'
> "
> this function required that "<arpa/inet,h>" be included but this folder did
> not exit in the my freebsd.

There's probably a typo in your #include: replace the "," with a "."
and try again.

On my 8.2-STABLE system, /usr/include/arpa/inet.h exists,
and defines inet_aton() just fine:

% grep 'inet_aton' /usr/include/arpa/inet.h
#define inet_aton               __inet_aton
int              inet_aton(const char *, struct in_addr *);

> Please help me to find solution or to use alternative function.
> thanks

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to