8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Use autoconf to do it right :-)

This commit is contained in:
eku 2003-08-12 10:06:14 +00:00
parent cdcdf85759
commit 4ff4800a4a
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#ident "$Id: config.h.in,v 1.1 2003-07-06 01:07:48 brodsom Exp $"
#ident "$Id: config.h.in,v 1.2 2003-08-12 10:06:12 eku Exp $"
/*
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete ports:
@ -85,6 +85,7 @@
#undef HAVE_SIGACTION
#undef HAVE_SETITIMER
#undef HAVE_SNPRINTF
#undef HAVE_VSNPRINTF
#undef HAVE_SWAB
#undef HAVE__SWAB
#undef HAVE_MMAP

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.152 2003-08-07 17:10:19 brodsom Exp $
dnl $Id: configure.in,v 1.153 2003-08-12 10:06:11 eku Exp $
dnl ############################# INITIALISATION ###############################
@ -358,7 +358,7 @@ fi
AC_SEARCH_LIBS(dirname,gen)
AC_CHECK_FUNCS(dirname)
AC_CHECK_FUNCS(sigaction setitimer)
AC_CHECK_FUNCS(snprintf)
AC_CHECK_FUNCS(snprintf vsnprintf)
AC_CHECK_FUNCS(swab _swab)
AC_FUNC_MMAP
AC_FUNC_FORK

View File

@ -137,6 +137,7 @@
#undef HAVE_SIGACTION
#undef HAVE_SETITIMER
#define HAVE_SNPRINTF
#define HAVE_VSNPRINTF
#define HAVE_SWAB
#define HAVE__SWAB
#undef HAVE_MMAP

View File

@ -59,7 +59,7 @@
#define vsnprintf _vsnprintf
#endif
#if defined(FREEBSD)
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif
@ -95,7 +95,11 @@ public:
char temp[1024];
va_list params;
va_start(params, message);
#ifdef HAVE_VSNPRINTF
vsnprintf(temp, sizeof(temp), message, params);
#else
vsprintf(temp, message, params);
#endif
va_end(params);
throw b_error(temp);
}