~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to tombupnp/upnp/src/genlib/net/uri/uri.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    
33
33
    TombUPnP - a library for developing UPnP applications.
34
34
    
35
 
    Copyright (C) 2006-2008 Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
 
35
    Copyright (C) 2006-2009 Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
36
36
    
37
37
    This library is free software; you can redistribute it and/or
38
38
    modify it under the terms of the GNU Lesser General Public
47
47
    License along with this library; if not, write to the Free Software
48
48
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
49
49
    
50
 
    $Id: uri.c 1698 2008-02-23 20:48:30Z lww $
 
50
    $Id: uri.c 2018 2009-01-22 18:42:33Z jin_eld $
51
51
*/
52
52
 
53
53
/************************************************************************
61
61
#include "config.h"
62
62
#include "uri.h"
63
63
 
64
 
#ifdef __FreeBSD__
 
64
#if defined(__FreeBSD__) || defined(__NetBSD__)
65
65
    #ifdef HAVE_LWRES_NETDB_H
66
66
        #include <lwres/netdb.h>
67
67
    #endif
639
639
        int errCode = 0;
640
640
 
641
641
        //call gethostbyname_r (reentrant form of gethostbyname)
642
 
#if defined(WIN32) || defined(__APPLE__) || defined(__CYGWIN__)
 
642
#if defined(WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__)
643
643
        h=gethostbyname(temp_host_name);
644
644
#elif defined(SOLARIS)
645
645
        h = gethostbyname_r( temp_host_name,