[sane-devel] backends 1.0.12 compile-error
Henning Meier-Geinitz
henning@meier-geinitz.de
Tue, 3 Jun 2003 12:28:52 +0200
Hi,
On Tue, Jun 03, 2003 at 11:27:28AM +0200, Gerfried Maier wrote:
> switch (remote_address.ss_family)
> static struct sockaddr_storage remote_address;
struct sockaddr_storage is defined in /usr/include/bits/socket.h:
struct sockaddr_storage
{
__SOCKADDR_COMMON (ss_); /* Address family, etc. */
__ss_aligntype __ss_align; /* Force desired alignment. */
char __ss_padding[_SS_PADSIZE];
};
with:
#define __SOCKADDR_COMMON(sa_prefix) \
sa_family_t sa_prefix##family
So remote_address.ss_family should be ok. I think I've seen that
compilation error on Linux/arm and that's a glibc bug (I guess). What
version of the C-library do you use? Hoq is struct sockaddr_storage
defined?
Bye,
Henning