Build fixes for irix and hpux.
This commit is contained in:
parent
000e9d7390
commit
b0d994b43c
|
@ -33,7 +33,7 @@
|
||||||
* Define if you have dlopen() and related routines (dynamic linking
|
* Define if you have dlopen() and related routines (dynamic linking
|
||||||
* of shared object files).
|
* of shared object files).
|
||||||
*/
|
*/
|
||||||
#undef HAVE_DLOPEN 1
|
#undef HAVE_DLOPEN
|
||||||
|
|
||||||
/* Define if your sys_errlist is a const definition */
|
/* Define if your sys_errlist is a const definition */
|
||||||
#undef HAVE_CONST_SYS_ERRLIST
|
#undef HAVE_CONST_SYS_ERRLIST
|
||||||
|
@ -45,6 +45,13 @@
|
||||||
not-very-portable way of looking up external symbols. */
|
not-very-portable way of looking up external symbols. */
|
||||||
#undef HAVE_NLIST
|
#undef HAVE_NLIST
|
||||||
|
|
||||||
|
#undef _HPUX_SOURCE
|
||||||
|
|
||||||
|
#undef hpux
|
||||||
|
|
||||||
|
#undef _XOPEN_SOURCE_EXTENDED
|
||||||
|
|
||||||
|
#undef socklen_t
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
|
|
||||||
#include "fake/sigact.h"
|
#include "fake/sigact.h"
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* looking up in a NULL open library returns symbols in the current executable
|
* looking up in a NULL open library returns symbols in the current executable
|
||||||
* (whose name is pointed to by object_file).
|
* (whose name is pointed to by object_file).
|
||||||
*/
|
*/
|
||||||
#include <stdlib.h>
|
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#include <nlist.h>
|
#include <nlist.h>
|
||||||
#include "../fakec/dlfcn.h"
|
#include "../fakec/dlfcn.h"
|
||||||
#ifdef USCORE
|
#ifdef USCORE
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "scheme48.h"
|
#include "scheme48.h"
|
||||||
#include <dlfcn.h>
|
#include "../fake/dlfcn.h"
|
||||||
|
|
||||||
|
|
||||||
#if defined(RTLD_NOW)
|
#if defined(RTLD_NOW)
|
||||||
|
|
|
@ -220,9 +220,10 @@ AC_INIT(c/scheme48vm.c)
|
||||||
LDFLAGS="-Wl,-E"
|
LDFLAGS="-Wl,-E"
|
||||||
if test ${CC} = cc; then
|
if test ${CC} = cc; then
|
||||||
CFLAGS="-Ae -O +Obb1800"
|
CFLAGS="-Ae -O +Obb1800"
|
||||||
|
fi
|
||||||
AC_DEFINE(_HPUX_SOURCE)
|
AC_DEFINE(_HPUX_SOURCE)
|
||||||
AC_DEFINE(hpux)
|
AC_DEFINE(hpux)
|
||||||
fi
|
AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
## IBM AIX
|
## IBM AIX
|
||||||
|
@ -294,6 +295,7 @@ AC_INIT(c/scheme48vm.c)
|
||||||
AC_CHECK_HEADERS(sys/un.h)
|
AC_CHECK_HEADERS(sys/un.h)
|
||||||
AC_CHECK_HEADERS(crypt.h)
|
AC_CHECK_HEADERS(crypt.h)
|
||||||
AC_CHECK_FUNCS(gettimeofday ftime nlist select setitimer sigaction)
|
AC_CHECK_FUNCS(gettimeofday ftime nlist select setitimer sigaction)
|
||||||
|
AC_CHECK_TYPE(socklen_t, unsigned int)
|
||||||
AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN),
|
AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN),
|
||||||
AC_CHECK_FUNC(nlist, [LIBOBJS="$LIBOBJS c/fake/libdl1.o"],
|
AC_CHECK_FUNC(nlist, [LIBOBJS="$LIBOBJS c/fake/libdl1.o"],
|
||||||
[LIBOBJS="$LIBOBJS c/fake/libdl2.o"]))
|
[LIBOBJS="$LIBOBJS c/fake/libdl2.o"]))
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Copyright (c) 1994 by Brian D. Carlstrom
|
* Copyright (c) 1994 by Brian D. Carlstrom
|
||||||
* Copyright (c) 1994 by Olin Shivers
|
* Copyright (c) 1994 by Olin Shivers
|
||||||
*/
|
*/
|
||||||
|
#include "sysdep.h"
|
||||||
#include "cstuff.h"
|
#include "cstuff.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
/* Make sure our exports match up w/the implementation: */
|
/* Make sure our exports match up w/the implementation: */
|
||||||
#include "network1.h"
|
#include "network1.h"
|
||||||
#include "scheme48.h"
|
#include "scheme48.h"
|
||||||
//extern int h_errno;
|
extern int h_errno;
|
||||||
|
|
||||||
/* to extract a 4 byte long value from a scheme string */
|
/* to extract a 4 byte long value from a scheme string */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue