1 --- gdl-0.9.7/src/objects.cpp.orig Wed May 31 14:10:14 2017
2 +++ gdl-0.9.7/src/objects.cpp Wed May 31 14:38:58 2017
8 + #include <sys/time.h>
9 + #include <sys/loadavg.h>
13 #include "gdlexception.hpp"
14 #include "initsysvar.hpp"
17 return default_num_threads;
21 +#elif defined(__sun__)
23 + double loadavg[nelem];
24 + (void)getloadavg(loadavg,nelem);
26 + if (.5 < loadavg[LOADAVG_15MIN])
29 + return (nbofproc - avload);
30 #elif defined (__unix) || defined(__unix__)
31 iff=freopen("/proc/loadavg","r",stderr);