зеркало из https://github.com/mozilla/gecko-dev.git
Bug 2370: FreeBSD 3.0 patches
This commit is contained in:
Родитель
40c9c81e4b
Коммит
4716eac6b9
|
@ -119,9 +119,6 @@ else
|
|||
ifeq ($(OS_ARCH),HP-UX)
|
||||
SHARED_LIBRARY := $(LIBRARY:.a=.sl)
|
||||
else
|
||||
ifneq (,$(filter FreeBSD NetBSD OpenBSD,$(OS_ARCH)))
|
||||
SHARED_LIBRARY := $(LIBRARY:.a=.so.1.0)
|
||||
else
|
||||
ifeq ($(OS_ARCH)$(OS_RELEASE),SunOS4.1)
|
||||
SHARED_LIBRARY := $(LIBRARY:.a=.so.1.0)
|
||||
else
|
||||
|
@ -137,7 +134,6 @@ endif
|
|||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef NO_STATIC_LIB
|
||||
LIBRARY = $(NULL)
|
||||
|
|
10
configure.in
10
configure.in
|
@ -143,14 +143,15 @@ alpha*-*-osf*)
|
|||
fi ;;
|
||||
|
||||
*-freebsd*)
|
||||
if test -z "$GNU_CC"; then
|
||||
DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
|
||||
fi
|
||||
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` = "elf"; then
|
||||
DLL_SUFFIX="so"
|
||||
else
|
||||
DLL_SUFFIX="so.1.0"
|
||||
fi ;;
|
||||
DSO_LDOPTS="-shared"
|
||||
fi
|
||||
if test -z "$GNU_CC"; then
|
||||
DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
|
||||
fi ;;
|
||||
|
||||
*-netbsd*)
|
||||
DLL_SUFFIX=".so.1.0"
|
||||
|
@ -284,6 +285,7 @@ AC_FUNC_VPRINTF
|
|||
AC_CHECK_FUNCS(ftime getcwd gethostname getwd mkdir mktime putenv rmdir select)
|
||||
AC_CHECK_FUNCS(socket strcspn strdup strerror strspn strstr strtol strtoul)
|
||||
AC_CHECK_FUNCS(uname qsort snprintf waitid fork1 remainder lchown)
|
||||
AC_CHECK_FUNCS(localtime_r)
|
||||
|
||||
AC_MSG_CHECKING(how to call gettimeofday)
|
||||
AC_CACHE_VAL(ac_cv_gettimeofday_args,
|
||||
|
|
|
@ -342,7 +342,7 @@ PRMJ_DSTOffset(JSInt64 time)
|
|||
JSInt64 maxtimet;
|
||||
struct tm tm;
|
||||
PRMJTime prtm;
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY )
|
||||
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY ) ) )
|
||||
struct tm *ptm;
|
||||
#endif
|
||||
|
||||
|
@ -361,7 +361,7 @@ PRMJ_DSTOffset(JSInt64 time)
|
|||
}
|
||||
JSLL_L2UI(local,time);
|
||||
PRMJ_basetime(time,&prtm);
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY )
|
||||
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY ) ) )
|
||||
ptm = localtime(&local);
|
||||
if(!ptm){
|
||||
return JSLL_ZERO;
|
||||
|
|
Загрузка…
Ссылка в новой задаче