Fix building problem under Linux ELF systems; no nlist.h
This commit is contained in:
parent
47fe4b82ae
commit
3d90d39924
|
@ -1620,7 +1620,7 @@ else
|
||||||
fi
|
fi
|
||||||
echo "$ac_t""$CPP" 1>&6
|
echo "$ac_t""$CPP" 1>&6
|
||||||
|
|
||||||
for ac_hdr in libgen.h sys/timeb.h posix/time.h sys/select.h
|
for ac_hdr in libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h
|
||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
|
|
|
@ -328,7 +328,7 @@ AC_CHECK_LIB(dld, shl_findsym)
|
||||||
dnl AC_CHECK_LIB(mld, main)
|
dnl AC_CHECK_LIB(mld, main)
|
||||||
|
|
||||||
AC_RETSIGTYPE
|
AC_RETSIGTYPE
|
||||||
AC_HAVE_HEADERS(libgen.h sys/timeb.h posix/time.h sys/select.h)
|
AC_HAVE_HEADERS(libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h)
|
||||||
AC_HAVE_FUNCS(strerror)
|
AC_HAVE_FUNCS(strerror)
|
||||||
AC_HAVE_FUNCS(dlopen gettimeofday ftime nlist select setitimer sigaction)
|
AC_HAVE_FUNCS(dlopen gettimeofday ftime nlist select setitimer sigaction)
|
||||||
AC_HAVE_FUNCS(socket chroot)
|
AC_HAVE_FUNCS(socket chroot)
|
||||||
|
|
|
@ -44,6 +44,10 @@
|
||||||
not-very-portable way of looking up external symbols. */
|
not-very-portable way of looking up external symbols. */
|
||||||
#undef HAVE_NLIST
|
#undef HAVE_NLIST
|
||||||
|
|
||||||
|
/* Define if you have the nlist.h header file. Some systems (linux)
|
||||||
|
have nlist, but not nlist.h */
|
||||||
|
#undef HAVE_NLIST_H
|
||||||
|
|
||||||
/* Define if struct nlist, defined in <nlist.h>, has an n_name component.
|
/* Define if struct nlist, defined in <nlist.h>, has an n_name component.
|
||||||
If it doesn't then we expect it to have an n_un component. */
|
If it doesn't then we expect it to have an n_un component. */
|
||||||
#undef NLIST_HAS_N_NAME
|
#undef NLIST_HAS_N_NAME
|
||||||
|
|
3
unix.c
3
unix.c
|
@ -90,7 +90,7 @@
|
||||||
# include <sys/timeb.h> /* for ftime() */
|
# include <sys/timeb.h> /* for ftime() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_NLIST)
|
#if defined(HAVE_NLIST_H)
|
||||||
# include <nlist.h> /* conforms to "SVID2", whatever that is */
|
# include <nlist.h> /* conforms to "SVID2", whatever that is */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -665,4 +665,3 @@ get_reloc_file()
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue