[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 60/163: configure: check for declaration of getpwui
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 60/163: configure: check for declaration of getpwuid_r |
Date: |
Sun, 05 Aug 2018 12:36:26 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 9c33813d835dde214c1a9449f789dd72ab3d9dc3
Author: Bernhard Walle <address@hidden>
AuthorDate: Sun May 27 19:51:04 2018 +0200
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 <address@hidden>
Closes #2609
---
configure.ac | 5 +++++
lib/curl_setup.h | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/configure.ac b/configure.ac
index f5f4e7717..9c4e697de 100755
--- a/configure.ac
+++ b/configure.ac
@@ -3618,6 +3618,11 @@ case $host in
;;
esac
+AC_CHECK_DECLS([getpwuid_r], [], [AC_DEFINE(HAVE_DECL_GETPWUID_R_MISSING, 1,
"Set if getpwuid_r() declaration is missing")],
+ [[#include <pwd.h>
+ #include <sys/types.h>]])
+
+
AC_CHECK_FUNCS([geteuid \
getpass_r \
getppid \
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index 5593a3b5c..9696a07d0 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -800,4 +800,11 @@ endings either CRLF or LF so 't' is appropriate.
#define CURL_SA_FAMILY_T unsigned short
#endif
+/* Some versions of the Android SDK is missing the declaration */
+#if defined(HAVE_GETPWUID_R) && defined(HAVE_DECL_GETPWUID_R_MISSING)
+struct passwd;
+int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf,
+ size_t buflen, struct passwd **result);
+#endif
+
#endif /* HEADER_CURL_SETUP_H */
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 67/163: curl_addrinfo: use same #ifdef conditions in source as header, (continued)
- [GNUnet-SVN] [gnurl] 67/163: curl_addrinfo: use same #ifdef conditions in source as header, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 33/163: winbuild: only delete OUTFILE if it exists, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 36/163: mailmap: a Richard Alcock fixup, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 17/163: curl: show headers in bold, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 19/163: checksrc: make sure sizeof() is used *with* parentheses, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 27/163: configure: add basic test of --with-ssl prefix, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 37/163: Fix the test for fsetxattr and strerror_r tests in CMake to work without compiling, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 50/163: configure: override AR_FLAGS to silence warning, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 47/163: KNOWN_BUGS: restore text regarding #2101., gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 40/163: curl.1: Fix cmdline-opts reference errors., gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 60/163: configure: check for declaration of getpwuid_r,
gnunet <=
- [GNUnet-SVN] [gnurl] 39/163: docs: fix cmdline-opts metadata headers case consistency., gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 26/163: http resume: skip body if http code 416 (range error) is ignored., gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 29/163: TODO: CURLINFO_PAUSE_STATE, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 59/163: tests: update .gitignore for libtests, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 72/163: cmdline-opts/cert-type.d: mention "p12" as a recognized type as well, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 75/163: tests/libtests/Makefile.am: Add lib1521.c to CLEANFILES, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 46/163: fnmatch: insist on escaped bracket to match, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 63/163: os400: add new option in ILE/RPG binding, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 62/163: tests/libtest/.gitignore: follow-up fix to ignore lib5* too, gnunet, 2018/08/05
- [GNUnet-SVN] [gnurl] 43/163: RELEASE-NOTES: synced, gnunet, 2018/08/05