mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
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:
parent
c6a3f77476
commit
a41d10dc8c
3 changed files with 7 additions and 6 deletions
2
configure
vendored
2
configure
vendored
|
@ -1356,7 +1356,7 @@ echo "Checking for Android specialities ..."
|
|||
TMPC=comptest$$
|
||||
STRRCHR=" not"
|
||||
echo '#include <stdio.h>' > $TMPC.c
|
||||
echo '#include <strings.h>' >> $TMPC.c
|
||||
echo '#include <string.h>' >> $TMPC.c
|
||||
echo "int main() { char *x = strrchr(\"test\", 'e'); if (x == NULL) return 0; else return 1; }" >> $TMPC.c
|
||||
$CC -o $TMPC $TMPC.c > /dev/null 2>&1
|
||||
test -x $TMPC && STRRCHR=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue