This should bring NeXTStep back into the family of supported operating

systems.
 - (bal) Fixed NeXT's lack of CPPFLAGS honoring.
 - (bal) ssh-keyscan.c: NeXT (and older BSDs) don't support getrlimit() w/
   'RLIMIT_NOFILE'
This commit is contained in:
Ben Lindstrom 2000-12-27 07:06:21 +00:00
Родитель fa610a17a3
Коммит 5adbad22cb
3 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -4,6 +4,9 @@
- (bal) Checks for getrlimit(), sysconf(), and setdtablesize(). Patch
by Corinna Vinschen <vinschen@redhat.com>
- (djm) Fix catman-do target for non-bash
- (bal) Fixed NeXT's lack of CPPFLAGS honoring.
- (bal) ssh-keyscan.c: NeXT (and older BSDs) don't support getrlimit() w/
'RLIMIT_NOFILE'
20001223
- (bal) Fixed Makefile.in to support recompile of all ssh and sshd objects

Просмотреть файл

@ -145,6 +145,7 @@ mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(BROKEN_REALPATH)
AC_DEFINE(USE_PIPES)
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
CFLAGS="$CFLAGS \${CPPFLAGS}"
;;
*-*-solaris*)
CPPFLAGS="$CPPFLAGS -I/usr/local/include"

Просмотреть файл

@ -183,7 +183,7 @@ getline(Linebuf * lb)
static int
fdlim_get(int hard)
{
#if defined(HAVE_GETRLIMIT)
#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
struct rlimit rlfd;
if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0)
return (-1);
@ -201,12 +201,12 @@ fdlim_get(int hard)
static int
fdlim_set(int lim)
{
#if defined(HAVE_SETRLIMIT)
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
struct rlimit rlfd;
#endif
if (lim <= 0)
return (-1);
#if defined(HAVE_SETRLIMIT)
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0)
return (-1);
rlfd.rlim_cur = lim;