Failed compilation on OS X (10.4.11)

Jan Ruzicka <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <C3D885E5.4D6F9%[email protected]>
Hi all

The doxygen-1.5.5 fails to compile on OS X 10.4.11.

qfiledefs_p.h:258: error: field 'st' has incomplete type
{standard input}:unknown:FATAL:can't create output file: ../objects/qfile.o
make[1]: *** [../objects/qfile.o] Error 1
make: *** [all] Error 2

Source was taken from doxygen-1.5.5.src.tar.gz.

Cause seems to be failure to include <sys/stat.h> in qtools/qfiledefs_p.h

Attached patch allows MAC_OS_X_VERSION_10_4 to include  <sys/stat.h> as it
is done for MAC_OS_X_VERSION_10_5.
I don't know if that is correct fix, because there is some definition of
_OS_UNIX_ in the same block.

Jan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop
qfiledefs_p.patch (application/octet-stream, 508 B)
diff -ru doxygen-1.5.5/qtools/qfiledefs_p.h doxygen-dev/qtools/qfiledefs_p.h
--- doxygen-1.5.5/qtools/qfiledefs_p.h	2007-11-18 08:15:43.000000000 -0500
+++ doxygen-dev/qtools/qfiledefs_p.h	2008-02-13 11:16:21.000000000 -0500
@@ -56,7 +56,7 @@
 # include <sys/types.h>
 # include <sys/stat.h>
 #elif defined(_OS_MAC_) \
-  && (MAC_OS_X_VERSION_MAX_ALLOWED==MAC_OS_X_VERSION_10_5)
+  && (MAC_OS_X_VERSION_MAX_ALLOWED>=MAC_OS_X_VERSION_10_4)
 # include <sys/types.h>
 # include <sys/stat.h>
 # define _OS_UNIX_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.