Greg Ercolano wrote:
> On 02/13/13 08:17, Michael Baeuerle wrote:
> > 
> > The manual page reference the /usr/ucb/cc (a BSD compatibility Compiler
> > that is not shipped with the OS distribution). This compiler will find
> > the required header files in /usr/ucbinclude. In /usr/include there is
> > no header file sys/dir.h (therefore the configure script don't find it
> > with other compilers, as intended by Sun). In the manual page there is
> > also a warning notice at the end:
> > |
> > | Use of these interfaces should be restricted to only
> > | applications written on BSD platforms.
> > | Use of these interfaces with any of the system libraries
> > | or in multi-thread applications is unsupported.
> >
> > Looks for me like this implementation is suitable for SunOS 4.x legacy
> > code only and not the "right" solution for FLTK.
> 
>         Not sure any of the devs has access to the latest sunos anymore.
>  
>         What compiler /is/ shipped with SunOS, if any?
>         Is a gnu compiler option supported?

With SunOS 5.7 there is no C/C++ compiler shipped with the OS. To my
knowledge this is the case for all 5.x versions up to 5.9 (that means
for all commercial versions before OpenSolaris was released).

Looking at The Open Group Technical Standard Base Specifications:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/scandir.html
scandir() is an official standard since Issue 7 aka POSIX.1-2008. Older
implementations may be not compliant.

IMHO it was therefore in general a good idea to emulate it on older
systems with opendir()/readdir()/closedir() as in FLTK 1.3.0 because
these functions are standardized over 20 years longer (since Issue 2 aka
XPG2 from 1987).
Next weekend I can try to write a new implementation with matching
license.


Regards,

Micha
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to