Fix ELF build. Change maintainer's mail address.

Submitted by:	maintainer, of course
This commit is contained in:
Satoshi Asami 1999-05-12 05:29:51 +00:00
parent 89f4620117
commit 8158434324
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18794
2 changed files with 23 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# Date created: 2 Jun 1997
# Whom: Ruslan Shevchenko <rssh@satori.ipri.kiev.ua>
#
# $Id: Makefile,v 1.3 1997/06/29 09:29:03 obrien Exp $
# $Id: Makefile,v 1.4 1998/10/14 04:10:03 jseger Exp $
#
DISTNAME= sr
@ -14,8 +14,6 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= rssh@cki.ipri.kiev.ua
BROKEN_ELF= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= prefix
NO_WRKSUBDIR= yes

22
lang/sr/files/patch-ab Normal file
View File

@ -0,0 +1,22 @@
diff -udr work.origin/csw/asm.c work/csw/asm.c
--- csw/asm.c.orig Mon Nov 22 23:18:14 1993
+++ csw/asm.c Wed May 12 05:05:46 1999
@@ -8,7 +8,17 @@
#include "../arch.h"
-#ifdef __svr4__ /* if SVR4 (including Solaris 2.x) */
+#ifdef __FreeBSD__
+#if __FreeBSD__ >= 2
+#include <osreldate.h>
+#if __FreeBSD_version >= 300004
+#define __elf__
+#endif
+#endif
+#endif
+
+ /* if SVR4 (including Solaris 2.x) or FreeBSD-elf */
+#if defined(__svr4__) || defined (__elf__)
#define SR_BUILD_CONTEXT sr_build_context
#define SR_CHG_CONTEXT sr_chg_context
#define SR_CHECK_STK sr_check_stk