浏览代码

port to FreeBSD 5.0

Ralf S. Engelschall 23 年之前
父节点
当前提交
f46db19007
共有 2 个文件被更改,包括 15 次插入1 次删除
  1. 12 0
      diffutils/diffutils.patch
  2. 3 1
      diffutils/diffutils.spec

+ 12 - 0
diffutils/diffutils.patch

@@ -0,0 +1,12 @@
+--- lib/c-stack.c.orig	Sat Jun 22 15:25:12 2002
++++ lib/c-stack.c	Sun Jan 12 13:35:17 2003
+@@ -67,6 +67,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ 
++#if defined(__FreeBSD__)
++#include <sys/types.h>
++#endif
+ #if HAVE_SYS_RESOURCE_H
+ # include <sys/resource.h>
+ #endif

+ 3 - 1
diffutils/diffutils.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [BASE]
 Group:        Utility
 License:      GPL
 Version:      2.8.4
-Release:      20020922
+Release:      20030112
 
 #   list of sources
 Source0:      ftp://alpha.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz
+Patch0:       diffutils.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -51,6 +52,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \