Package: libc6-dev
Version: 2.3.2.ds1-11
Severity: normal

I get a warning when compiling the following testapp:


#include <sys/types.h>
#include <signal.h>

int main(int argc, char **argv) {
        kill(0,0);
        return 0;
}


I use the this command line:


gcc -ansi -Wall -D_BSD_SOURCE -c killbug.c


The warning I get:


killbug.c: In function `main':
killbug.c:5: Warnung: implicit declaration of function 'kill'


In /usr/include/signal.h kill() is defined as follows:


#ifdef __USE_POSIX
extern int kill (__pid_t __pid, int __sig) __THROW;
#endif /* Use POSIX.  */


According to kill() manpage was defined on BSD 4.3 too.
This means it should be available with -D_BSD_SOURCE I think.

Is this correct ?


Michael


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (999, 'testing'), (10, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.24-obelix
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (ignored: LC_ALL set to [EMAIL PROTECTED])

Versions of packages libc6-dev depends on:
ii  libc6                2.3.2.ds1-11        GNU C Library: Shared libraries an
ii  linux-kernel-headers 2.5.999-test7-bk-15 Linux Kernel Headers for developme

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to