Source: gpm
Version: 1.20.7-11
Severity: important
Tags: ftbfs patch
User: helm...@debian.org
Usertags: rebootstrap

We recently made -Werror=implicit-function-declaration the default.
Unfortunately src/daemon/old_main.c is missing some crucial #includes
and that makes the build fail in some configurations. It notably misses:

 * <string.h> for strcmp, strcpy and strerror
 * <strings.h> for bzero

I'm attaching a patch for your convenience.

Helmut
--- gpm-1.20.7.orig/src/daemon/old_main.c
+++ gpm-1.20.7/src/daemon/old_main.c
@@ -19,6 +19,8 @@
  *
  ********/
 
+#include <string.h>                 /* str*              */
+#include <strings.h>                /* bzero             */
 #include <sys/socket.h>             /* UNIX              */
 #include <sys/un.h>                 /* SOCKET            */
 #include <fcntl.h>                  /* open              */

Reply via email to