View | Details | Raw Unified | Return to bug 2085 | Differences between
and this patch

Collapse All | Expand All

(-)configure.ac (-4 / +15 lines)
Lines 979-987 mips-sony-bsd|mips-sony-newsos4) Link Here
979
*-*-nto-qnx*)
979
*-*-nto-qnx*)
980
	AC_DEFINE([USE_PIPES])
980
	AC_DEFINE([USE_PIPES])
981
	AC_DEFINE([NO_X11_UNIX_SOCKETS])
981
	AC_DEFINE([NO_X11_UNIX_SOCKETS])
982
	AC_DEFINE([MISSING_NFDBITS], [1], [Define on *nto-qnx systems])
983
	AC_DEFINE([MISSING_HOWMANY], [1], [Define on *nto-qnx systems])
984
	AC_DEFINE([MISSING_FD_MASK], [1], [Define on *nto-qnx systems])
985
	AC_DEFINE([DISABLE_LASTLOG])
982
	AC_DEFINE([DISABLE_LASTLOG])
986
	AC_DEFINE([SSHD_ACQUIRES_CTTY])
983
	AC_DEFINE([SSHD_ACQUIRES_CTTY])
987
	AC_DEFINE([BROKEN_SHADOW_EXPIRE], [1], [QNX shadow support is broken])
984
	AC_DEFINE([BROKEN_SHADOW_EXPIRE], [1], [QNX shadow support is broken])
Lines 1002-1008 mips-sony-bsd|mips-sony-newsos4) Link Here
1002
999
1003
*-*-lynxos)
1000
*-*-lynxos)
1004
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
1001
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
1005
	AC_DEFINE([MISSING_HOWMANY])
1006
        AC_DEFINE([BROKEN_SETVBUF], [1], [LynxOS has broken setvbuf() implementation])
1002
        AC_DEFINE([BROKEN_SETVBUF], [1], [LynxOS has broken setvbuf() implementation])
1007
        ;;
1003
        ;;
1008
esac
1004
esac
Lines 1701-1706 AC_CHECK_DECLS([MAXSYMLINKS], , , [ Link Here
1701
1697
1702
AC_CHECK_DECLS([offsetof], , , [
1698
AC_CHECK_DECLS([offsetof], , , [
1703
#include <stddef.h>
1699
#include <stddef.h>
1700
	])
1701
1702
# extra bits for select(2)
1703
AC_CHECK_DECLS([howmany, fd_mask, NFDBITS], , , [
1704
#include <sys/param.h>
1705
#include <sys/types.h>
1706
#ifdef HAVE_SYS_SELECT_H
1707
#include <sys/select.h>
1708
#endif
1709
#ifdef HAVE_SYS_TIME_H
1710
#include <sys/time.h>
1711
#endif
1712
#ifdef HAVE_UNISTD_H
1713
#include <unistd.h>
1714
#endif
1704
	])
1715
	])
1705
1716
1706
AC_CHECK_FUNCS([setresuid], [
1717
AC_CHECK_FUNCS([setresuid], [
(-)defines.h (-12 / +10 lines)
Lines 171-181 enum Link Here
171
# define MAP_FAILED ((void *)-1)
171
# define MAP_FAILED ((void *)-1)
172
#endif
172
#endif
173
173
174
/* *-*-nto-qnx doesn't define this constant in the system headers */
175
#ifdef MISSING_NFDBITS
176
# define	NFDBITS (8 * sizeof(unsigned long))
177
#endif
178
179
/*
174
/*
180
SCO Open Server 3 has INADDR_LOOPBACK defined in rpc/rpc.h but
175
SCO Open Server 3 has INADDR_LOOPBACK defined in rpc/rpc.h but
181
including rpc/rpc.h breaks Solaris 6
176
including rpc/rpc.h breaks Solaris 6
Lines 355-365 struct winsize { Link Here
355
};
350
};
356
#endif
351
#endif
357
352
358
/* *-*-nto-qnx does not define this type in the system headers */
353
/* bits needed for select that may not be in the system headers */
359
#ifdef MISSING_FD_MASK
354
#if defined(HAVE_FD_MASK) && HAVE_FD_MASK == 0
360
 typedef unsigned long int	fd_mask;
355
 typedef unsigned long int	fd_mask;
361
#endif
356
#endif
362
357
358
#if defined(HAVE_DECL_NFDBITS) && HAVE_DECL_NFDBITS == 0
359
# define	NFDBITS (8 * sizeof(unsigned long))
360
#endif
361
362
#if defined(HAVE_DECL_HOWMANY) && HAVE_DECL_HOWMANY == 0
363
# define howmany(x,y)	(((x)+((y)-1))/(y))
364
#endif
365
363
/* Paths */
366
/* Paths */
364
367
365
#ifndef _PATH_BSHELL
368
#ifndef _PATH_BSHELL
Lines 482-492 struct winsize { Link Here
482
485
483
#if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__)
486
#if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__)
484
# define __nonnull__(x)
487
# define __nonnull__(x)
485
#endif
486
487
/* *-*-nto-qnx doesn't define this macro in the system headers */
488
#ifdef MISSING_HOWMANY
489
# define howmany(x,y)	(((x)+((y)-1))/(y))
490
#endif
488
#endif
491
489
492
#ifndef OSSH_ALIGNBYTES
490
#ifndef OSSH_ALIGNBYTES

Return to bug 2085