mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
osf getnetent_r changes
This commit is contained in:
parent
70d1a774f4
commit
ab35bf14bd
2 changed files with 32 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
|||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||
AC_DIVERT_POP()dnl
|
||||
|
||||
AC_REVISION($Revision: 1.77 $)
|
||||
AC_REVISION($Revision: 1.78 $)
|
||||
|
||||
AC_INIT(resolv/herror.c)
|
||||
AC_PREREQ(2.13)
|
||||
|
|
@ -1347,7 +1347,11 @@ AC_CHECK_FUNC(setgroupent,,AC_DEFINE(NEED_SETGROUPENT))
|
|||
|
||||
AC_CHECK_FUNC(getnetbyaddr_r,
|
||||
AC_TRY_COMPILE(
|
||||
[#include <netdb.h>
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#define _OSF_SOURCE
|
||||
#include <netdb.h>
|
||||
struct netent *
|
||||
getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
|
||||
int buflen) {}
|
||||
|
|
@ -1365,7 +1369,11 @@ GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
|
|||
NETENT_DATA="#undef NETENT_DATA"
|
||||
],
|
||||
AC_TRY_COMPILE(
|
||||
[#include <netdb.h>
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#define _OSF_SOURCE
|
||||
#include <netdb.h>
|
||||
int getnetbyaddr_r (unsigned long int, int, struct netent *,
|
||||
char *, size_t, struct netent **, int *);
|
||||
],
|
||||
|
|
@ -1382,9 +1390,12 @@ GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
|
|||
NETENT_DATA="#undef NETENT_DATA"
|
||||
],
|
||||
AC_TRY_COMPILE(
|
||||
[#define _REENTRANT
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#define _OSF_SOURCE
|
||||
#include <netdb.h>
|
||||
int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
|
||||
extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
|
||||
],
|
||||
[return (0)],
|
||||
[
|
||||
|
|
@ -1473,6 +1484,8 @@ AC_SUBST(NET_R_SET_RETURN)
|
|||
AC_CHECK_FUNC(endnetent_r,
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#include <netdb.h>
|
||||
void endnetent_r (void);
|
||||
] ,[return (0);],[
|
||||
|
|
@ -1481,6 +1494,7 @@ NET_R_END_RETURN="#define NET_R_END_RETURN void"
|
|||
],
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#include <netdb.h>
|
||||
extern int endnetent_r(struct netent_data *);
|
||||
|
|
@ -1488,6 +1502,17 @@ extern int endnetent_r(struct netent_data *);
|
|||
NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
|
||||
NET_R_END_RETURN="#define NET_R_END_RETURN int"
|
||||
],
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#undef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#include <netdb.h>
|
||||
extern void endnetent_r(struct netent_data *);
|
||||
] ,[return (0);],[
|
||||
NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
|
||||
NET_R_END_RETURN="#define NET_R_END_RETURN void"
|
||||
],
|
||||
)
|
||||
)
|
||||
)
|
||||
,
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
|
||||
/*
|
||||
* @(#)netdb.h 8.1 (Berkeley) 6/2/93
|
||||
* $Id: netdb.h,v 1.10 2001/07/16 14:43:39 marka Exp $
|
||||
* $Id: netdb.h,v 1.11 2001/07/23 00:04:27 marka Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETDB_H_
|
||||
|
|
@ -395,7 +395,7 @@ int endhostent_r __P((struct hostent_data *));
|
|||
void endhostent_r __P((struct hostent_data *));
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
#if defined(__hpux) || defined(__osf__)
|
||||
int getnetbyaddr_r __P((int, int,
|
||||
struct netent *, struct netent_data *));
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue