Ver código fonte

port to Solaris

Ralf S. Engelschall 21 anos atrás
pai
commit
86eb6299ca

+ 12 - 0
gift-gnutella/gift-gnutella.patch

@@ -0,0 +1,12 @@
+Index: src/gt_gnutella.h
+--- src/gt_gnutella.h.orig	2005-01-05 21:20:43.000000000 +0100
++++ src/gt_gnutella.h	2005-02-18 13:32:35.476448938 +0100
+@@ -111,4 +111,8 @@
+ 
+ /*****************************************************************************/
+ 
++#ifndef INADDR_NONE
++#define INADDR_NONE 0xffffffffUL
++#endif
++
+ #endif /* GIFT_GT_GNUTELLA_H_ */

+ 3 - 1
gift-gnutella/gift-gnutella.spec

@@ -34,10 +34,11 @@ Class:        PLUS
 Group:        Network
 License:      GPL
 Version:      0.0.10
-Release:      20050110
+Release:      20050218
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/gift/gift-gnutella-%{version}.tar.bz2
+Patch0:       gift-gnutella.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -67,6 +68,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \

+ 12 - 0
gift-openft/gift-openft.patch

@@ -19,3 +19,15 @@ Index: configure
      done
    use_libdb=$found_libdb
  else
+Index: src/ft_openft.h
+--- src/ft_openft.h.orig	2004-08-06 04:01:54.000000000 +0200
++++ src/ft_openft.h	2005-02-18 13:35:13.048745268 +0100
+@@ -157,4 +157,8 @@
+ 
+ /*****************************************************************************/
+ 
++#ifndef INADDR_NONE
++#define INADDR_NONE 0xffffffffUL
++#endif
++
+ #endif /* __FT_OPENFT_H */

+ 1 - 1
gift-openft/gift-openft.spec

@@ -34,7 +34,7 @@ Class:        PLUS
 Group:        Network
 License:      GPL
 Version:      0.2.1.5
-Release:      20041206
+Release:      20050218
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/gift/gift-openft-%{version}.tar.bz2