Ethereal-dev: [Ethereal-dev] "struct stat" vs. "struct _stat"

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 25 Nov 2005 17:04:33 -0800
Martin Warnes wrote:

Not sure about the file_access.c warning, I get that on the latest SVN version even without my changes.

The problem is, I suspect, that we used to, I think, #define "stat" to be "_stat" on Windows, which meant that

	1) "stat()" mapped to "_stat()"

*and*

	2) "struct stat" mapped to "struct _stat"

but we're not doing that any more - we're mapping "eth_stat" to "_stat" with GLib 2.4[.x] and earlier, but not mapping "_stat", so we're calling "_stat()" with a pointer to "struct stat".