diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-10 10:58:07 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-02-10 10:58:07 +0000 |
commit | 29b7a6ec9a120d7ac062af75d57a8d2e50144010 (patch) | |
tree | ae2b9b37541c2cd94e40896c0b68f4618d584c81 /shells | |
parent | a1cc7e899b398d8774ad694e51a1e734ff9ffda4 (diff) | |
download | FreeBSD-ports-29b7a6ec9a120d7ac062af75d57a8d2e50144010.zip FreeBSD-ports-29b7a6ec9a120d7ac062af75d57a8d2e50144010.tar.gz |
Make compile on FreeBSD/sparc64 !
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash1/files/patch-ah | 54 | ||||
-rw-r--r-- | shells/bash1/files/patch-test.c | 18 |
2 files changed, 53 insertions, 19 deletions
diff --git a/shells/bash1/files/patch-ah b/shells/bash1/files/patch-ah index 14fcc43..3033ef2 100644 --- a/shells/bash1/files/patch-ah +++ b/shells/bash1/files/patch-ah @@ -1,19 +1,35 @@ -*** machines.h.orig Fri Jun 27 10:54:20 1997 ---- machines.h Fri Jun 27 10:54:22 1997 -*************** -*** 63,69 **** - some machines, our malloc () cannot be used (because of library - conflicts, for example), and for those, you should specifically - #undef USE_GNU_MALLOC in the machine description. */ -! #define USE_GNU_MALLOC - - /* This causes the Gnu malloc library (from glibc) to be used. */ - /* #define USE_GNU_MALLOC_LIBRARY */ ---- 63,69 ---- - some machines, our malloc () cannot be used (because of library - conflicts, for example), and for those, you should specifically - #undef USE_GNU_MALLOC in the machine description. */ -! #undef USE_GNU_MALLOC - - /* This causes the Gnu malloc library (from glibc) to be used. */ - /* #define USE_GNU_MALLOC_LIBRARY */ +--- machines.h.orig Mon Dec 18 11:13:22 1995 ++++ machines.h Sun Feb 10 02:30:49 2002 +@@ -63,7 +63,7 @@ + some machines, our malloc () cannot be used (because of library + conflicts, for example), and for those, you should specifically + #undef USE_GNU_MALLOC in the machine description. */ +-#define USE_GNU_MALLOC ++#undef USE_GNU_MALLOC + + /* This causes the Gnu malloc library (from glibc) to be used. */ + /* #define USE_GNU_MALLOC_LIBRARY */ +@@ -80,6 +80,23 @@ + /* Sun Microsystems Machines */ + /* */ + /* **************************************************************** */ ++ ++/* FreeBSD running on a 386 or 486. */ ++#if defined (__sparc64__) && defined (__FreeBSD__) ++# define M_MACHINE "sun4u" ++# define M_OS "FreeBSD" ++# define SYSDEP_CFLAGS -D__BSD_4_4__ -DRLIMTYPE=quad_t ++# define SYSDEP_LDFLAGS -static ++# define HAVE_SYS_SIGLIST ++# define HAVE_SETLINEBUF ++# define HAVE_GETGROUPS ++# define HAVE_VFPRINTF ++# define HAVE_STRERROR ++# define VOID_SIGHANDLER ++# define HAVE_DIRENT ++# define HAVE_STRCASECMP ++# define GCC_STANDARD ++#endif /* __sparc64__ && __FreeBSD__ */ + + /* NetBSD running on a sparc. */ + #if defined (sparc) && defined (__NetBSD__) diff --git a/shells/bash1/files/patch-test.c b/shells/bash1/files/patch-test.c new file mode 100644 index 0000000..d05535c --- /dev/null +++ b/shells/bash1/files/patch-test.c @@ -0,0 +1,18 @@ +--- test.c.orig Fri Dec 23 06:45:12 1994 ++++ test.c Sun Feb 10 02:34:09 2002 +@@ -194,6 +194,7 @@ + return (stat (path, finfo)); + } + ++#if 0 /* use native FreeBSD libc version */ + /* Do the same thing access(2) does, but use the effective uid and gid, + and don't make the mistake of telling root that any file is + executable. */ +@@ -237,6 +238,7 @@ + + return (-1); + } ++#endif + + #if defined (HAVE_GETGROUPS) + /* The number of groups that this user is a member of. */ |