Re: [Plib-devel] patch for compiling on Solaris 10
Brought to you by:
sjbaker
From: Martin S. <Mar...@mg...> - 2006-12-10 17:40:00
|
"Vikas N Kumar" wrote: > To compile with the Sun Studio 11 compilers on Solaris 10 on a SPARC I > had to do the following changes to make plib compile cleanly. > When I run configure, the flag "-Dsocklen_t=int" is added to my > compile line for all files. Hence I have to undefine it in 2 files to > get them to compile properly since socklen_t is defined as a typedef > of "uint32_t" in those files. I'd love to see such a patch incorporated into PLIB. For the past years or so, after PLIB development stalled, I've been using a workaround that looks like this: for i in `find . -type f -name Makefile`; do echo -e ",s/-Dsocklen_t=int//g\nwq" | ed $i done .... which I consider as "elegant" but not a "real solution" (TM ;-), I guess your's is much better, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -------------------------------------------------------------------------- |