go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ REQ 5402]: src/lib/mg/ps and SVR4




The following gv source files use the random() function, which is  
not supported on strict SVR4 platforms, such as Solaris 2.4:

	src/lib/mg/ps/rand.c
	src/lib/mg/ps/handline.c

Here's what I added to the top of both files to fix this:

#if (defined(__svr4__) || defined(SVR4) || defined(SYSTYPE_SVR4) ||  
defined(_SVR4_SOURCE))
#include <stdlib.h>
#define srandom(x)	(srand48((long)(x)))
#define random()	(lrand48())
#endif

For handline.c, you'll also want to remove the declaration of  
random() from the function init_noise3(), or if you prefer, to move  
it into the #else clause of the above #if.

PB


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo