Explorar o código

fix building under FreeBSD

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
895b285ccf
Modificáronse 2 ficheiros con 16 adicións e 0 borrados
  1. 14 0
      orbit/orbit.patch
  2. 2 0
      orbit/orbit.spec

+ 14 - 0
orbit/orbit.patch

@@ -0,0 +1,14 @@
+--- config.h.in.orig	Tue Jul  2 19:30:48 2002
++++ config.h.in	Tue Jul  2 19:35:53 2002
+@@ -35,8 +35,10 @@
+ 
+ #undef ORBIT_HAVE_ALLOCA_H
+ 
+-#ifdef ORBIT_HAVE_ALLOCA_H
++#if defined(ORBIT_HAVE_ALLOCA_H) 
++#if ORBIT_HAVE_ALLOCA_H != 0
+ #include <alloca.h>
++#endif
+ #endif
+ 
+ /* Define if you have the `basename' function. */

+ 2 - 0
orbit/orbit.spec

@@ -37,6 +37,7 @@ Release:      20020702
 
 #   list of sources
 Source0:      ftp://ftp.gnome.org/pub/GNOME/stable/sources/ORBit/ORBit-%{version}.tar.gz
+Patch0:       orbit.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -52,6 +53,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n ORBit-%{version}
+    %patch -p0
 
 %build
     PATH="%{l_prefix}/bin:$PATH"; export PATH