tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Optionally make compat socklen_t default to int in bootstrap?
Hey folks,
bootstrap fails for me on an ancient SunOS machine and I am looking for the
proper way to make the
#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
#endif
part of pkgtools/libnbcompat/files/nbcompat/netdb.h
use "int" instead of "unsigned int" when make gets OPSYS=SunOS.
At the source code level I would do:
#ifndef HAVE_SOCKLEN_T
#ifdef DEFAULT_SOCKLEN_T_TO_INT
typedef int socklen_t;
#else
typedef unsigned int socklen_t;
#endif
#endif
(or similar) but I am not sure where to properly (and portably) put the
equivalent of
CFLAGS += -DDEFAULT_SOCKLEN_T_TO_INT
without killing other systems.
Any hints?
Martin
Home |
Main Index |
Thread Index |
Old Index