diff --git a/configure.ac b/configure.ac index 63324c2c7c..0e5ffb806e 100644 --- a/configure.ac +++ b/configure.ac @@ -699,6 +699,12 @@ AC_DEFUN esac ;; + ## QNX Neutrino + *-nto-qnx* ) + opsys=qnxnto + CFLAGS="$CFLAGS -D__NO_EXT_QNX" + ;; + ## Intel 386 machines where we don't care about the manufacturer. i[3456]86-*-* ) case "${canonical}" in @@ -1507,6 +1513,8 @@ AC_DEFUN hpux*) LIBS_SYSTEM="-l:libdld.sl" ;; + qnxnto) LIBS_SYSTEM="-L/usr/lib -lsocket" ;; + sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;; ## Motif needs -lgen. @@ -2210,7 +2218,8 @@ AC_DEFUN case "$opsys" in ## darwin ld insists on the use of malloc routines in the System framework. darwin | mingw32 | nacl | sol2-10) ;; - cygwin) hybrid_malloc=yes + cygwin | qnxnto) + hybrid_malloc=yes system_malloc= ;; *) test "$ac_cv_func_sbrk" = yes && system_malloc=$emacs_cv_sanitize_address;; esac @@ -4604,7 +4613,7 @@ AC_DEFUN AC_DEFINE(PTY_TTY_NAME_SPRINTF, []) ;; - gnu | openbsd ) + gnu | openbsd | qnxnto ) AC_DEFINE(FIRST_PTY_LETTER, ['p']) ;; diff --git a/src/unexelf.c b/src/unexelf.c index 1cdcfeb44e..200ddf4ae2 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -58,9 +58,12 @@ what you give them. Help stamp out software-hoarding! */ #include #include -#if !defined (__NetBSD__) && !defined (__OpenBSD__) +#ifdef __QNX__ +#include +#elif !defined __NetBSD__ && !defined __OpenBSD__ #include -#endif /* not __NetBSD__ and not __OpenBSD__ */ +#endif + #include #if defined (_SYSTYPE_SYSV) #include