<<< Date Index >>>     <<< Thread Index >>>

Re: 1.5.8 build failure on Solaris 8



On Fri, Mar 04, 2005 at 03:32:03PM +0000, Aaron Crane wrote:
> The only other option is unpleasant: change all calls to look like this:
> 
>   struct s *p = ...;
>   int fd = (p->open)(name, mode);
>   (p->close)(fd);
> 
"neat" trick. :}

another idea:
after including the standard headers, alias the standard functions to
some "namespace-clean" names and undef them afterwards.

#include <unistd.h>
#define posix_lseek(a,b,c) lseek(a,b,c)
#ifdef lseek
# undef lseek
#endif

open() is a nightmare by itself, because it is a varargs function ...

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.