Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan inet_pton.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 3 Aug 2002 14:37:48 -0500 (CDT)
guy         2002/08/03 14:37:48 CDT

  Modified files:
    epan                 inet_pton.c 
  Log:
  <netinet/in.h> is needed for <arpa/inet.h>, at least on some platforms,
  and <sys/types.h> is needed for <netinet/in.h>.
  
  On systems with "inet_pton()", the API is defined using "u_char", and
  we're including <sys/types.h> on platforms that have it (which should be
  most if not all UNIX platforms) and including <winsock2.h> on platforms
  that have it (Windows), so we might as well use "u_char" and "u_int", as
  the BSD version of "inet_pton.c" does.  (Besides, we weren't including
  any GLib include files, so "guchar" and "guint" weren't getting defined
  in any case.)
  
  Revision  Changes    Path
  1.4       +21 -13    ethereal/epan/inet_pton.c