Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / ORBit / patches / patch-ag
blobef8342cdaec92955bf9352ef085845954177d52c
1 $NetBSD$
3 --- src/IIOP/connection.c.orig  Sun May 13 09:07:46 2001
4 +++ src/IIOP/connection.c
5 @@ -1,4 +1,7 @@
6  #include "config.h"
7 +#include <sys/types.h>
8 +#include <sys/param.h>
9 +#include <stdio.h>
10  #if defined (__hpux) && ! defined (_XOPEN_SOURCE_EXTENDED)
11  #   define _XOPEN_SOURCE_EXTENDED 1
12  #   define WE_DEFINED_XOPEN_SOURCE_EXTENDED 1
13 @@ -13,7 +16,6 @@
14  #include <stdlib.h>
15  #include <unistd.h>
16  #include <errno.h>
17 -#include <sys/types.h>
18  #include <fcntl.h>
19  #include <sys/socket.h>
20  #include <sys/un.h>
21 @@ -31,8 +33,9 @@
22  #include <sys/ioctl.h>
23  #include <signal.h>
24  #include <syslog.h>
25 +#include <pthread.h>
27 -#if defined(HAVE_TCPD_H) && defined(HAVE_HOSTS_ACCESS)
28 +#if defined(HAVE_TCPD_H)
29  #include <tcpd.h>
30  #endif
32 @@ -80,7 +83,7 @@
33  GIOPConnectionList giop_connection_list;
34  static GSList *iiop_unix_socket_list = NULL;
36 -#if defined(HAVE_HOSTS_ACCESS) && defined (HAVE_TCPD_H)
37 +#if defined (HAVE_TCPD_H)
38  static const char *argv0_val = NULL;
39  #endif
41 @@ -104,7 +107,7 @@
42    struct sigaction mypipe;
43    g_assert(sizeof(GIOPMessageHeader) == 12);
45 -#if defined(HAVE_HOSTS_ACCESS) && defined (HAVE_TCPD_H)
46 +#if defined (HAVE_TCPD_H)
47    argv0_val = g_strdup(g_basename(argv0)); /* For TCP wrappers */
48  #endif
50 @@ -1007,7 +1010,7 @@
51   */
52  int allow_severity = LOG_INFO, deny_severity = LOG_NOTICE;
54 -#if defined(HAVE_HOSTS_ACCESS) && defined(HAVE_TCPD_H)
55 +#if defined(HAVE_TCPD_H)
56  DEFINE_LOCK(tcp_wrappers_usage);
58  #endif
59 @@ -1033,7 +1036,7 @@
61    newfd = accept(GIOP_CONNECTION_GET_FD(connection), &sock, &n);
63 -#if defined(HAVE_HOSTS_ACCESS) && defined(HAVE_TCPD_H)
64 +#if defined(HAVE_TCPD_H)
65    /* tcp wrappers access checking */
66    switch(IIOP_CONNECTION(connection)->icnxtype) {
67    case IIOP_IPV4: