Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
591
Issues
591
List
Boards
Labels
Service Desk
Milestones
Merge Requests
113
Merge Requests
113
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
588f79e5
Commit
588f79e5
authored
Sep 01, 2009
by
Tatuya JINMEI 神明達哉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed build error on hpux due to gai_strerror() prototype mismatch
[RT #20194]
parent
44de0b1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
config.h.in
config.h.in
+4
-1
configure.in
configure.in
+17
-1
lib/irs/gai_strerror.c
lib/irs/gai_strerror.c
+2
-2
No files found.
config.h.in
View file @
588f79e5
...
...
@@ -16,7 +16,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.h.in,v 1.11
8 2009/09/01 00:22:24
jinmei Exp $ */
/* $Id: config.h.in,v 1.11
9 2009/09/01 17:54:16
jinmei Exp $ */
/*! \file */
...
...
@@ -298,6 +298,9 @@ int sigwait(const unsigned int *set, int *sig);
/* Define to the flags type used by getnameinfo(3). */
#undef IRS_GETNAMEINFO_FLAGS_T
/* Define to the return type of gai_strerror(3). */
#undef IRS_GAISTRERROR_RETURN_T
/* Define if connect does not honour the permission on the UNIX domain socket.
*/
#undef NEED_SECURE_DIRECTORY
...
...
configure.in
View file @
588f79e5
...
...
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.47
4
$)
AC_REVISION($Revision: 1.47
5
$)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.59)
...
...
@@ -1876,6 +1876,22 @@ int getnameinfo(const struct sockaddr *, socklen_t, char *,
AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int)])])
#
# ...and same for gai_strerror().
#
AC_MSG_CHECKING(for gai_strerror prototype definitions)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
char *gai_strerror(int ecode);],
[ return (0); ],
[AC_MSG_RESULT(returning char *)
AC_DEFINE([IRS_GAISTRERROR_RETURN_T], [char *],
[return type of gai_srerror])],
[AC_MSG_RESULT(not match any subspecies; assume standard definition)])
AC_DEFINE([IRS_GAISTRERROR_RETURN_T], [const char *])
AC_CHECK_FUNC(getipnodebyname,
[ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"],
[ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"])
...
...
lib/irs/gai_strerror.c
View file @
588f79e5
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: gai_strerror.c,v 1.
3 2009/09/01 03:43:27
jinmei Exp $ */
/* $Id: gai_strerror.c,v 1.
4 2009/09/01 17:54:16
jinmei Exp $ */
/*! \file gai_strerror.c
* gai_strerror() returns an error message corresponding to an
...
...
@@ -78,7 +78,7 @@ static const char *gai_messages[] = {
* Returns an error message corresponding to an error code returned by
* getaddrinfo() and getnameinfo()
*/
const
char
*
IRS_GAISTRERROR_RETURN_T
gai_strerror
(
int
ecode
)
{
union
{
const
char
*
const_ptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment