This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] PATCH : Fix powerpc-darwin build failure in libmudflap



On Dec 3, 2003, at 11:25 AM, Andrew Pinski wrote:



On Dec 3, 2003, at 11:21, Devang Patel wrote:
I managed to bootstrap with just this patch few weeks ago.
Right now it full bootstrap is in progress. What is the other thing ?


Here is the original patch which I sent out:
<http://gcc.gnu.org/ml/gcc-patches/2003-07/msg03022.html>.
The replay is here: <http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00031.html>.


Basically socklen_t is used but not defined in any of darwin's headers at all.

On my system (MacOSX 10.3.1), I can compile following


$ cat a.c
#include <stdio.h>
#include <sys/socket.h>

int main()
{
        socklen_t st = 0;
        return 0;
}

and looking at the preprocessed source ...

$ cc -E a.c   |grep socklen
typedef int32_t socklen_t;
...

And I see

/usr/include/sys/socket.h:79:typedef _BSD_SOCKLEN_T_ socklen_t;
and
/usr/include/ppc/ansi.h:67:#define _BSD_SOCKLEN_T_ int32_t /* socklen_t (duh) */



Maybe you're looking at different darwin version.


--
Devang


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]