On Fri, Dec 07, 2001 at 09:29:38AM +1100, Ben Stanley wrote: > The Solaris headers can be told to give us a POSIX compliant definition > of munmap by doing > #define _POSIX_C_SOURCE 199506L > before > #include <sys/mman.h> > > This seems to be fairly standard - see [...] > > So, I think that the _POSIX_C_SOURCE define may fix both problems, but I > would like to see authorative documentation. > > I think it is probably safe to define this macro unconditionally for > this file because we only need mmap here, and on Linux it has no effect.
This seems fine to me. I have added just the _POSIX_C_SOURCE definition to the lyxsum.C file and it compiles fine on Solaris. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)