Hi, On 11/27/06, dann frazier <[EMAIL PROTECTED]> wrote:
Package: vtun Version: 2.6-5 Severity: important Tags: patch
This is often due to a missing function prototype definition.
Function `ptsname' implicitly converted to pointer at pty_dev.c:51 Function `lzo_malloc' implicitly converted to pointer at lfd_lzo.c:77 ----- End forwarded message ----- diff -urN vtun-2.6.orig/generic/pty_dev.c vtun-2.6/generic/pty_dev.c --- vtun-2.6.orig/generic/pty_dev.c 2002-12-20 10:44:46.000000000 -0700 +++ vtun-2.6/generic/pty_dev.c 2006-11-26 21:48:15.000000000 -0700 @@ -19,7 +19,7 @@ /* * pty_dev.c,v 1.1.1.1.2.1 2000/11/20 07:57:33 maxk Exp */ - +#define _XOPEN_SOURCE #include "config.h" #include <unistd.h>
I have a problem with this, gcc says pty_dev.c:45: warning: implicit declaration of function 'getpt' The manpage of getpt says it is a GNU extension, so maybe it gets undefined with _XOPEN_SOURCE, but I don't quite understand the semantics of those #defines.. Can you help me solving this cleanly? -- Martín Ferrari

