Ethereal-dev: [Ethereal-dev] [Patch] eth_mkdir()

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

From: Gisle Vanem <giva@xxxxxxxxx>
Date: Wed, 09 Nov 2005 18:10:35 +0100
This macro as defined in rev. 16447 doesn't work on Win32 since MSVC/MIngW doesn't have the mode/access parameter. Patch:

--- SVN-Latest\wiretap\file_util.h      Wed Nov 09 17:00:30 2005
+++ wiretap\file_util.h Wed Nov 09 17:46:29 2005
@@ -62,14 +62,15 @@
#define eth_open       _open
#define eth_stat       _stat
#define eth_unlink     _unlink
+#define eth_mkdir(p,a) mkdir(p)
#else
#define eth_open       open
#define eth_stat       stat
#define eth_unlink     unlink
+#define eth_mkdir(p)   mkdir(p)
#endif

#define eth_rename     rename
-#define eth_mkdir      mkdir
#define eth_remove     remove
#define eth_fopen      fopen
#define eth_freopen    freopen
------------------
--gv