Re: gethostname vs pread/pwrite in Linux

From
Valentin Nechayev ()
To
Igor Sysoev ()
Date
2003-06-05T00:06:14Z
Area
RU.UNIX.PROG
From: Valentin Nechayev <netch@segfault.kiev.ua>


>>> Igor Sysoev wrote:

IS> Есть Debian 3.0, ядро Linux 2.4.20.
IS> q.c:9: warning: implicit declaration of function `pread'
IS> q.c:10: warning: implicit declaration of function `pwrite'
IS> смотрим в man и добавляем define:
>>cc -D_XOPEN_SOURCE=500 -Wall -o q q.c
IS> q.c: In function `main':
IS> q.c:8: warning: implicit declaration of function `gethostname'
IS> Вопрос - это только Debian 3.0 такой умный или нет ? В RedHat 6.2 я с таким
IS> не сталкнулся.
IS> Вопрос номер два - как с этим умом бороться ?

-D_GNU_SOURCE, насколько я понимаю, заставляет включить всё.


-netch-
--- ifmail v.2.15dev5
 * Origin: Dark side of coredump (2:5020/400)