dlls/ntdll/directory.c portability breakage
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Tue Mar 16 02:24:12 CST 2004
The new file dlls/ntdll/directory.c added by
date: 2004/03/16 01:32:02; author: julliard; state: Exp;
Implemented NtQueryDirectoryFile (partly based on a patch by Eric
Pouech).
broke non-Linux platforms (like FreeBSD):
/usr/bin/gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__
-D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2
-fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o directory.o
directory.c
directory.c: In function `NtQueryDirectoryFile':
directory.c:446: error: `O_DIRECTORY' undeclared (first use in this function)
directory.c:446: error: (Each undeclared identifier is reported only once
directory.c:446: error: for each function it appears in.)
There *is* code to #define O_DIRECTORY
/* To avoid blocking on non-directories in DOSFS_OpenDir_VFAT*/
#ifndef O_DIRECTORY
# define O_DIRECTORY 0200000 /* must be directory */
#endif
but it's in #ifdef linux only!
Gerald
--
Gerald Pfeifer (Jerry) gerald at pfeifer.com http://www.pfeifer.com/gerald/
More information about the wine-devel
mailing list