Browse Source

Fix FreeBSD Compilation

Peter Smej 24 years ago
parent
commit
63537ef5b3
2 changed files with 14 additions and 0 deletions
  1. 12 0
      emacs/emacs-20.7.patch
  2. 2 0
      emacs/emacs.spec

+ 12 - 0
emacs/emacs-20.7.patch

@@ -0,0 +1,12 @@
+--- src/emacs.c.orig	Wed May 24 15:58:54 2000
++++ src/emacs.c	Fri Oct 19 09:42:22 2001
+@@ -602,7 +602,9 @@
+   char stack_bottom_variable;
+   int skip_args = 0;
+   extern int errno;
++#ifndef __FreeBSD__
+   extern int sys_nerr;
++#endif
+ #ifdef HAVE_SETRLIMIT
+   struct rlimit rlim;
+ #endif

+ 2 - 0
emacs/emacs.spec

@@ -36,6 +36,7 @@ Release:      2
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.gz
+Patch0:       emacs-%{version}.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -50,6 +51,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q 
+    %patch -p0
 
 %build
     %{l_rpmtool} subst \