mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-15 10:32:23 +01:00
Selectively apply _GNU_SOURCE to fix implicit function declaration
errors.
```
In file included from command.c:14:
command.c: In function 'handle_localecho_command':
port.h:115:20: error: implicit declaration of function 'strcasecmp'; did
you mean 'wcscasecmp'? [-Wimplicit-function-declaration]
115 | # define cstrcmp strcasecmp
| ^~~~~~~~~~
command.c:182:14: note: in expansion of macro 'cstrcmp'
182 | else if (cstrcmp(args->data + offset, "on") == 0) local_echo(1);
| ^~~~~~~
command.c: In function 'do_file_load':
command.c:551:29: error: implicit declaration of function 'strdup'; did
you mean 'strcmp'? [-Wimplicit-function-declaration]
551 | *savename = strdup( file->name );
| ^~~~~~
| strcmp
command.c:551:27: error: assignment to 'char *' from 'int' makes pointer
from integer without a cast [-Wint-conversion]
551 | *savename = strdup( file->name );
| ^
```