freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT schemamania.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] COMPILATION UNDER QNX 4.25
- Date: Sat, 19 Jul 2003 16:15:21 -0400
On Sat, 19 Jul 2003 13:18:17 -0500, GUTIERREZ Pablo TESIS-TAMSA
<Tesgup AT tamsa.com.mx> wrote:
>
> I'd like to help to make freetds easier to be built under QNX
> 4.25/WATCOM C,
Hi, Pablo. Let's see if we can help you.
> The fd_set type under QNX 4 is declared into <sys/select.h>
I added detection for sys/select.h to configure.in (generates
./configure). That should automatically notice the file. It will be in
tomorrow's snapshot. Please post a patch with:
#if HAVE_SELECT_H
# include <sys/select.h>
#endif /* HAVE_SELECT_H */
in the appropriate files.
> QNX
> int _vbprintf (char* buf, size_t count, const char* format, va_list arg
> ); int _bprintf (char* buf, size_t count, const char* format, ...);
> LINUX
> int vsnprintf(char* buf, size_t count, const char* format, va_list arg
> ); int snprintf(char *str, size_t size, const char *format, ...);
These are very nonstandard functions. I suppose the least intrusive
approach is to add something like this to include/tds_sysdep_private.h:
#if defined (__QNX__)
# define vsnprintf _vbprintf
# define snprintf _bprintf
#endif /* QNX */
If you do that and it works, please send us the patch, and I'll apply it.
--jkl
-
[freetds] COMPILATION UNDER QNX 4.25,
GUTIERREZ Pablo TESIS-TAMSA, 07/19/2003
- Re: [freetds] COMPILATION UNDER QNX 4.25, James K. Lowden, 07/19/2003
- <Possible follow-up(s)>
-
RE: [freetds] COMPILATION UNDER QNX 4.25,
GUTIERREZ Pablo TESIS-TAMSA, 07/19/2003
- Re: [freetds] COMPILATION UNDER QNX 4.25, James K. Lowden, 07/19/2003
-
RE: [freetds] COMPILATION UNDER QNX 4.25,
GUTIERREZ Pablo TESIS-TAMSA, 07/19/2003
- Re: [freetds] COMPILATION UNDER QNX 4.25, James K. Lowden, 07/19/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, GUTIERREZ Pablo TESIS-TAMSA, 07/21/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, Lowden, James K, 07/21/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, GUTIERREZ Pablo TESIS-TAMSA, 07/21/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, Lowden, James K, 07/21/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, Lowden, James K, 07/21/2003
- RE: [freetds] COMPILATION UNDER QNX 4.25, GUTIERREZ Pablo TESIS-TAMSA, 07/21/2003
Archive powered by MHonArc 2.6.24.