From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 22:50:19 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3E56106566C for ; Wed, 18 Jan 2012 22:50:19 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 620A28FC0A for ; Wed, 18 Jan 2012 22:50:19 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost [127.0.0.1]) by x.it.okstate.edu (8.14.4/8.14.4) with ESMTP id q0IMoIlx046642 for ; Wed, 18 Jan 2012 16:50:18 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201201182250.q0IMoIlx046642@x.it.okstate.edu> To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <46640.1326927018.1@dc.cis.okstate.edu> Date: Wed, 18 Jan 2012 16:50:18 -0600 From: Martin McCormick Cc: Subject: Re: Sample getaddrinfo Code Compiles in Linux but not FreeBSD. 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: Wed, 18 Jan 2012 22:50:19 -0000 Peter Andreev writes: > #include Many thanks. That made the FreeBSD version work just as well. As soon as I saw netinet.h, I realized it wasn't in the original code as the Linux libraries apparently accomplish the same thing without that header. Martin