Ethereal-dev: [Ethereal-dev] Replace types from sys/types.h by glib.h

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

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 12 Jul 2002 02:32:34 +0200
Hello,

the attached patch is my first attempt to remove sys/types.h from the
sources and use the types defined in glib.h instead.
There are a few caveats:
 asn1.c, packet-snmp.c: I assume that the u_XXX and guXXX types are
	equivalent.
 gtk/tcp_graph.c (but the types aren't used there anywhere, so
	what is going on?)
 epan/strutil.h, epan/to_str.c, wiretap/buffer.h have comments like
	"#include <winsock2.h>        /* to define u_char */"
 I may have made some mistakes with the search and replace, although
	I've rechecked the diffs (and of course made sure it compiles).
Do any of the standard includes need sys/types.h? The only test I have
done is on a rather new linux system (suse 8.0), so I don't know where
there may be portability problems with what I've done.

  Ciao
       Jörg

Changelog: <jmayer@xxxxxxxxx>
  - Replace all instances of u_XXX types included via sys/types.h by
    guXXX included by glib.h.
  - Don't include sys/types any more.
  - Remove no longer needed HAVE_SYS_TYPES_H from config.in.*

--
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.

Attachment: sys_types.diff.gz
Description: application/gunzip