which header for brk? - Minix
This is a discussion on which header for brk? - Minix ; hi
according to this site:
http://www.minix3.org/manpages/man2/brk.2.html
if i want to use the brk sys call, i have to include unistd.h, which
ive done, but im still getting warnings about an implicit function
declaration when compiling a prog that uses brk..
...
-
which header for brk?
hi
according to this site:
http://www.minix3.org/manpages/man2/brk.2.html
if i want to use the brk sys call, i have to include unistd.h, which
ive done, but im still getting warnings about an implicit function
declaration when compiling a prog that uses brk..
why is that?
thanx,
martin
-
Re: which header for brk?
> according to this site:
>
> http://www.minix3.org/manpages/man2/brk.2.html
>
> if i want to use the brk sys call, i have to include unistd.h, which
> ive done, but im still getting warnings about an implicit function
> declaration when compiling a prog that uses brk..
> why is that?
The ACK compiler seems to have some trouble locating headers. If you
use GCC instead it works.
If you installed it, GCC is found at /usr/gnu/bin/gcc
-
Re: which header for brk?
sancho1980 wrote:
> hi
> according to this site:
>
> http://www.minix3.org/manpages/man2/brk.2.html
>
> if i want to use the brk sys call, i have to include unistd.h, which
> ive done, but im still getting warnings about an implicit function
> declaration when compiling a prog that uses brk..
> why is that?
Did you invoke the compiler with -D_MINIX. If you check the file
/usr/include/unistd.h you'll that the brk() prototype is processed only
if _MINIX is defined.
Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 < http://giovanni.homelinux.net/ >