Changeset 4056

Show
Ignore:
Timestamp:
06/04/07 11:35:00 (7 years ago)
Author:
piers
Message:

Applied fix suggested by Doug Kosovic - and I also modified inet_pton to match - using NEED_INET_PTON instead of using HAVE_INET_PTON as more platforms now have their own definitions of these functions.
The problem was also reported by Lassi Ylikojola:
 https://mediatools.cs.ucl.ac.uk/nets/mmedia/ticket/66

Location:
common/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/configure.in

    r3922 r4056  
    123123        AC_DEFINE(NEED_INET_NTOP) 
    124124        AC_LIBOBJ([inet_ntop]) 
    125 else 
    126         AC_DEFINE(HAVE_INET_NTOP) 
    127125fi 
    128126#AC_SUBST(LIBOBJS) 
  • common/trunk/src/inet_ntop.h

    r379 r4056  
    1 #ifndef HAVE_INET_NTOP 
     1#ifdef NEED_INET_NTOP 
    22#if defined(__cplusplus) 
    33extern "C" { 
     
    99} 
    1010#endif 
    11 #endif /* HAVE_INET_NTOP */ 
     11#endif /* NEED_INET_NTOP */ 
  • common/trunk/src/inet_pton.h

    r513 r4056  
    1 #ifndef HAVE_INET_PTON 
     1#ifdef NEED_INET_PTON 
    22#if defined(__cplusplus) 
    33extern "C" { 
     
    99} 
    1010#endif 
    11 #endif /* HAVE_INET_PTON */ 
     11#endif /* NEED_INET_PTON */ 
    1212