Parcourir la source

corrected type in tcpd.h (cplusplus -> __cplusplus)

Thomas Lotterer il y a 21 ans
Parent
commit
d987246963
2 fichiers modifiés avec 21 ajouts et 4 suppressions
  1. 20 3
      tcpwrappers/tcpwrappers.patch
  2. 1 1
      tcpwrappers/tcpwrappers.spec

+ 20 - 3
tcpwrappers/tcpwrappers.patch

@@ -296,9 +296,10 @@ diff -u -u -r1.1.1.1 tli.c
  	if (SWAP_MODULE(request->fd, "sockmod", "timod") != 0)
  	    tcpd_warn("replace sockmod by timod: %m");
  	if (request->sink != 0)
---- tcpd.h.orig	2003-01-04 20:15:59.000000000 -0500
-+++ tcpd.h	2004-03-23 12:57:47.000000000 -0500
-@@ -7,6 +7,8 @@
+Index: tcpd.h
+--- tcpd.h.orig	2003-01-05 02:15:59.000000000 +0100
++++ tcpd.h	2005-08-21 17:25:37.751541000 +0200
+@@ -7,12 +7,14 @@
  #ifndef TCP_WRAPPERS_HEADER
  #define TCP_WRAPPERS_HEADER
  
@@ -307,6 +308,13 @@ diff -u -u -r1.1.1.1 tli.c
  #include <netinet/in.h>
  #include <netdb.h>
  
+ #define TCPD_STRING_LENGTH	256		/* hosts, users, processes */
+ 
+-#ifdef cplusplus
++#ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
 @@ -70,8 +72,8 @@
  #if defined(TLI) || defined(PTX) || defined(TLI_SEQUENT)
  void fromhost(struct request_info *);   /* get/validate client host info */
@@ -318,3 +326,12 @@ diff -u -u -r1.1.1.1 tli.c
  #endif
  
  /*
+@@ -98,7 +100,7 @@
+ 	RQ_SERVER_ADDR	/* server host address */
+ };
+ 
+-#ifdef cplusplus
++#ifdef __cplusplus
+ }
+ #endif 
+ 

+ 1 - 1
tcpwrappers/tcpwrappers.spec

@@ -33,7 +33,7 @@ Class:        PLUS
 Group:        Network
 License:      BSD
 Version:      7.6k
-Release:      20040706
+Release:      20050821
 
 #   package options
 %option       with_private_namespace  no