OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   14-Oct-2005 20:06:03
  Branch: HEAD                             Handle: 2005101419060200

  Modified files:
    openpkg-src/tcpwrappers tcpwrappers.patch tcpwrappers.spec

  Log:
    workaround C99 constraints enforced by GCC 4.0

  Summary:
    Revision    Changes     Path
    1.4         +25 -0      openpkg-src/tcpwrappers/tcpwrappers.patch
    1.11        +1  -1      openpkg-src/tcpwrappers/tcpwrappers.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/tcpwrappers/tcpwrappers.patch
  ============================================================================
  $ cvs diff -u -r1.3 -r1.4 tcpwrappers.patch
  --- openpkg-src/tcpwrappers/tcpwrappers.patch 21 Aug 2005 15:33:18 -0000      
1.3
  +++ openpkg-src/tcpwrappers/tcpwrappers.patch 14 Oct 2005 18:06:02 -0000      
1.4
  @@ -335,3 +335,28 @@
    }
    #endif 
    
  +Index: rfc931.c
  +--- rfc931.c.orig    2003-03-10 21:57:13 +0100
  ++++ rfc931.c 2005-10-14 20:04:35 +0200
  +@@ -36,6 +36,8 @@
  + #define RFC931_BUFSZ        512
  + #define SA_PORT(s) ADDR_FAM(s) == AF_INET ? \
  +     (s)->sa_in.sin_port : (s)->sa_in6.sin6_port
  ++#define SA_PORT_SET(s,v) if (ADDR_FAM(s) == AF_INET) \
  ++    (s)->sa_in.sin_port = (v); else (s)->sa_in6.sin6_port = (v)
  + 
  + int rfc931_timeout = RFC931_TIMEOUT;
  + static int safe_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  +@@ -98,10 +100,10 @@
  +      * addresses from the query socket.
  +      */
  +     memcpy(&our_query, our_sa, sizeof(our_query));
  +-    SA_PORT(&our_query) = htons(ANY_PORT);
  ++    SA_PORT_SET(&our_query, htons(ANY_PORT));
  +     
  +     memcpy(&rmt_query, rmt_sa, sizeof(rmt_query));
  +-    SA_PORT(&rmt_query) = htons(RFC931_PORT);
  ++    SA_PORT_SET(&rmt_query, htons(RFC931_PORT));
  + 
  +     do { 
  +         ret_val = bind(sock, &our_query.sa, sizeof(our_query.sa));
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/tcpwrappers/tcpwrappers.spec
  ============================================================================
  $ cvs diff -u -r1.10 -r1.11 tcpwrappers.spec
  --- openpkg-src/tcpwrappers/tcpwrappers.spec  21 Aug 2005 15:33:18 -0000      
1.10
  +++ openpkg-src/tcpwrappers/tcpwrappers.spec  14 Oct 2005 18:06:02 -0000      
1.11
  @@ -33,7 +33,7 @@
   Group:        Network
   License:      BSD
   Version:      7.6k
  -Release:      20050821
  +Release:      20051014
   
   #   package options
   %option       with_private_namespace  no
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to