1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-14 23:44:58 +02:00

Include Posix-compliant header for strcasecmp().

gcc has apparently merged this function in string.h but Posix specifies that it should be in strings.h.  FreeBSD at at least is sticking to the standard.

In the long run it might be better to implement our own strcasecmp() function but for now just add the header.

Suggested by ucando.
This commit is contained in:
David Steele
2019-01-26 13:48:46 +02:00
parent 1401c023f0
commit f3ae3c4f9d
2 changed files with 14 additions and 0 deletions

View File

@ -38,6 +38,14 @@
<p>Update address lookup in C TLS client to use modern methods.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideator id="ucando"/>
</release-item-contributor-list>
<p>Include Posix-compliant header for <code>strcasecmp()</code>.</p>
</release-item>
</release-improvement-list>
<release-development-list>
@ -6394,6 +6402,11 @@
<contributor-id type="github">seadba</contributor-id>
</contributor>
<contributor id="ucando">
<contributor-name-display>ucando</contributor-name-display>
<contributor-id type="github">ucando</contributor-id>
</contributor>
<contributor id="uspen">
<contributor-name-display>uspen</contributor-name-display>
<contributor-id type="github">uspen</contributor-id>

View File

@ -5,6 +5,7 @@ TLS Client
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.h>
#include <unistd.h>