[ scummvm-Bugs-638641 ] ALL: does not compile on solaris

noreply at sourceforge.net noreply at sourceforge.net
Thu Nov 14 21:47:09 CET 2002


Bugs item #638641, was opened at 2002-11-14 21:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=638641&group_id=37116

Category: None
Group: All Games
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Gernoth (stargo)
Assigned to: Nobody/Anonymous (nobody)
Summary: ALL: does not compile on solaris

Initial Comment:
When trying to compile a current cvs-checkout
(14.11.02) on a sparc solaris machine, the file
posix-fs can not be compiled, because the solaris
dirent-structure does not have a member called d_type:

c++ -Wp,-MMD,"backends/fs/posix/.deps/posix-fs.d2" -g
-O -Wall -Wstrict-prototypes -Wuninitialized
-Wno-long-long -Wno-multichar -Wno-unknown-pragmas 
-DUNIX -DUSE_MAD -DSIMONDEBUG -I. -Icommon `sdl-config
--cflags` -c backends/fs/posix/posix-fs.cpp -o
backends/fs/posix/posix-fs.o
backends/fs/posix/posix-fs.cpp: In method `class FSList
* POSIXFilesystemNode::listDir() const':
backends/fs/posix/posix-fs.cpp:102: `struct dirent' has
no member named `d_type'
backends/fs/posix/posix-fs.cpp:102: `DT_DIR' undeclared
(first use this function)
backends/fs/posix/posix-fs.cpp:102: (Each undeclared
identifier is reported only once
backends/fs/posix/posix-fs.cpp:102: for each function
it appears in.)
gmake: *** [backends/fs/posix/posix-fs.o] Error 1

When replacing the line with a stat-call and then
checking for a directory, scummvm compiles:
#include <sys/stat.h>
...
        struct stat dstat;
...
                stat(dp->d_name,&dstat);
                entry._isDirectory =
S_ISDIR(dstat.st_mode);

But I do not believe this is a clean (or even working
as intended) solution.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=638641&group_id=37116




More information about the Scummvm-tracker mailing list