@@ -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
@@ -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 \