Hi all,
I am compiling my code with below mentioned option, i am getting some strange error,

The warning what i am getting is
Quote:
cm_os.c:166: warning: ISO C++ forbids declaration of ‘mmap’ with no type
cm_os.c:168: warning: ISO C++ forbids declaration of ‘munmap’ with no type
And compiler option which i am using to compile is

Code:
g++  -c -g3 -m32 -ansi -fpermissive -pipe  -Wall -Wno-comment -Wcast-align -Wcast-qual
and the code part is
Quote:
extern mmap (S8 *addr, OsSize len, OsInt prot, OsInt flags, OsInt fildes, OsLong off);

extern munmap (S8 *addr, OsSize len);
can any one tell me how can i solve this warnings