From owner-freebsd-questions@FreeBSD.ORG Tue Jul 5 08:54:15 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D4A31065709 for ; Tue, 5 Jul 2011 08:54:15 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CF8228FC1B for ; Tue, 5 Jul 2011 08:54:14 +0000 (UTC) Received: by vws18 with SMTP id 18so5521314vws.13 for ; Tue, 05 Jul 2011 01:54:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.118.193 with SMTP id w1mr2691349vcq.96.1309856050223; Tue, 05 Jul 2011 01:54:10 -0700 (PDT) Received: by 10.220.7.146 with HTTP; Tue, 5 Jul 2011 01:54:10 -0700 (PDT) X-Originating-IP: [93.221.166.63] In-Reply-To: References: Date: Tue, 5 Jul 2011 10:54:10 +0200 Message-ID: From: "C. P. Ghost" To: ahmad javadi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: the alternative function for inet_aton X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 08:54:15 -0000 On Mon, Jul 4, 2011 at 8:05 PM, ahmad javadi wrote: > hi > I use " inet_aton" =A0function in the kernel socket programming but i hav= e the > following warrning: > "crypto.c:63: warning: implicit declaration of function 'inet_aton' > crypto.c:63: warning: nested extern declaration of =A0'inet_aton' > " > this function required that "" be included but this folder d= id > 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. --=20 Cordula's Web. http://www.cordula.ws/