[freetds] COMPILATION UNDER QNX 4.25
James K. Lowden
jklowden at schemamania.org
Sat Jul 19 17:15:21 EDT 2003
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
More information about the FreeTDS
mailing list