]> granicus.if.org Git - curl/commit
configure: check for declaration of getpwuid_r
authorBernhard Walle <bernhard@bwalle.de>
Sun, 27 May 2018 17:51:04 +0000 (19:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 31 May 2018 10:51:15 +0000 (12:51 +0200)
commit9c33813d835dde214c1a9449f789dd72ab3d9dc3
treecc9f86f1841379c388c988349e0eb52ef3f054e4
parent7179b8393ee5965fcfef2989c042ed25d43cd868
configure: check for declaration of getpwuid_r

On our x86 Android toolchain, getpwuid_r is implemented but the header
is missing:

 netrc.c:81:7: error: implicit declaration of function 'getpwuid_r' [-Werror=implicit-function-declaration]

Unfortunately, the function is used in curl_ntlm_wb.c, too, so I moved
the prototype to curl_setup.h.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Closes #2609
configure.ac
lib/curl_setup.h