Patches item #2718854, was opened at 2009-03-28 13:51
Message generated for change (Comment added) made by bergha
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=504082&aid=2718854&group_id=63470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Miscellaneous
Group: u2.10.12
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Herrmann (dvdhrm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix compilation on Darwin

Initial Comment:
On Darwin (at least Mac OS X 10.5 and higher) the "getrusage()" function
is available but the "struct rusage" is not defined correctly, therefore, the
built failes.

This can be fixed by defining _DARWIN_C_SOURCE before including resource.h:

--- configure.in        (Revision 157)
+++ configure.in        (Arbeitskopie)
@@ -189,6 +189,7 @@
     *-darwin*)
        AC_MSG_RESULT([Darwin (Mac OS X) ($host) found.])
        unet_poll_syscall=no
+       AC_DEFINE([_DARWIN_C_SOURCE], 1, [Define to enable POSIX compatibility 
on Darwin.])
        ;;
 
     *)


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

Comment By: Anders Bergh (bergha)
Date: 2010-03-07 04:44

Message:
This solves compilation on Darwin, is it going to be added?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=504082&aid=2718854&group_id=63470
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to