Gentoo Archives: gentoo-embedded

From: "Peter S. Mazinger" <ps.m@×××.net>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] redefined SOCK_* building uclibc/ssp.c
Date: Tue, 09 Nov 2004 19:28:31
Message-Id: Pine.LNX.4.44.0411092019150.20155-100000@lnx.bridge.intra
1 Hello!
2
3 The cause lies in the file socket.h provided by the kernel-headers, it has
4 the check
5
6 if defined __KERNEL__ || (some GLIBC condition), and this does not apply
7 to uClibc.
8
9 we could add || !defined (__UCLIBC__), but this works only if we also add
10 #include <features.h>, else __UCLIBC__is not defined.
11 Would this produce some problems?
12
13 The files that need this kind of "handling" are:
14 include/asm-i386/posix_types.h and socket.h
15 include/linux/socket.h stat.h and coda.h
16 haven't checked other archs:
17 grep GLIBC asm-<arch>/*
18
19 Peter
20
21 --
22 Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
23 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
24
25
26 --
27 gentoo-embedded@g.o mailing list

Replies

Subject Author
[gentoo-embedded] Re: redefined SOCK_* building uclibc/ssp.c "Peter S. Mazinger" <ps.m@×××.net>