#1070124 gpm FTBFS: -Werror=implicit-function-declaration makes missing #includes fatal

Package:
src:gpm
Source:
src:gpm
Submitter:
Helmut Grohne
Date:
2024-04-30 15:39:11 UTC
Severity:
normal
Tags:
#1070124#5
Date:
2024-04-30 15:20:32 UTC
From:
To:
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