Re: CVS: Compile problem on Solaris

2001-12-04 Thread Stephan Witt
Lars Gullik Bjønnes wrote: Kayvan A. Sylvan [EMAIL PROTECTED] writes: | On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: Ok, what is munmap's prototype on your box? | #ifdef __STDC__ | #if (_POSIX_C_SOURCE 2) | [...] | extern int munmap(void *, size_t); |

Re: CVS: Compile problem on Solaris

2001-12-04 Thread Stephan Witt
Lars Gullik Bjønnes wrote: > > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: > >> Ok, what is munmap's prototype on your box? > > > | #ifdef __STDC__ > | #if (_POSIX_C_SOURCE > 2) > | [...] > | extern int

CVS: Compile problem on Solaris

2001-12-03 Thread Kayvan A. Sylvan
Hi folks, Here is the Solaris compile problem: g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -I/remote/tools/ksylvan/include -isystem /usr/openwin/include -O2 -isystem /depot/X11/include -W -Wall -Wp,-MD,.deps/lyxsum.pp -c lyxsum.C lyxsum.C:23: warning: #warning lyx::sum()

Re: CVS: Compile problem on Solaris

2001-12-03 Thread Kayvan A. Sylvan
On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: Ok, what is munmap's prototype on your box? #ifdef __STDC__ #if (_POSIX_C_SOURCE 2) [...] extern int munmap(void *, size_t); [...] #else [...] extern int munmap(caddr_t, size_t); [...] #endif /* (_POSIX_C_SOURCE 2) */

Re: CVS: Compile problem on Solaris

2001-12-03 Thread Ben Stanley
So does that mean that we should #define _POSIX_C_SOURCE 3 or something like that before #include sys/mman.h I don't have experience with Solaris on this level... Kayvan A. Sylvan wrote: On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: Ok, what is munmap's prototype on

CVS: Compile problem on Solaris

2001-12-03 Thread Kayvan A. Sylvan
Hi folks, Here is the Solaris compile problem: g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -I/remote/tools/ksylvan/include -isystem /usr/openwin/include -O2 -isystem /depot/X11/include -W -Wall -Wp,-MD,.deps/lyxsum.pp -c lyxsum.C lyxsum.C:23: warning: #warning lyx::sum()

Re: CVS: Compile problem on Solaris

2001-12-03 Thread Kayvan A. Sylvan
On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: > Ok, what is munmap's prototype on your box? #ifdef __STDC__ #if (_POSIX_C_SOURCE > 2) [...] extern int munmap(void *, size_t); [...] #else [...] extern int munmap(caddr_t, size_t); [...] #endif /* (_POSIX_C_SOURCE > 2)

Re: CVS: Compile problem on Solaris

2001-12-03 Thread Ben Stanley
So does that mean that we should #define _POSIX_C_SOURCE 3 or something like that before #include I don't have experience with Solaris on this level... Kayvan A. Sylvan wrote: >On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: > >>Ok, what is munmap's prototype on your box?