Various C99 compatibility fixes

strrchr is declared in <strings.h>, not <string.h>.

_GNU_SOURCE needs to be defined before any glibc headers are included,
otherwise it is not effective.

Also patch some old autoconf-internal issues in the hydra-gtk
configure script.
This commit is contained in:
Florian Weimer 2023-01-18 16:30:24 +01:00
parent c6a3f77476
commit a41d10dc8c
3 changed files with 7 additions and 6 deletions

View file

@ -6,10 +6,11 @@
//
//
#define _GNU_SOURCE
#include "hydra-mod.h"
#include "sasl.h"
#include <stdio.h>
#define _GNU_SOURCE
#include <string.h>
extern char *HYDRA_EXIT;