Skip to Content.
Sympa Menu

freetds - Re: [freetds] portability suggestion for src/tds/unittests/convert.c

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] portability suggestion for src/tds/unittests/convert.c
  • Date: Fri, 02 Jan 2004 08:23:51 -0000

Il ven, 2004-01-02 alle 01:15, Craig A. Berry ha scritto:
> In finalizing the VMS port for the upcoming release, I ran into a couple
> of small gotchas with src/tds/unittests/convert.c, with a suggested
> patch attached below.
>
> 1.) The Single UNIX Specification says that the behavior of
> gettimeofday() is undefined unless the second argument is NULL. I think
> that's a language lawyer way of saying it's deprecated and we don't
> really know what will happen if you were depending on it. My system
> (OpenVMS Alpha 7.3-1) doesn't even define the timezone type in its headers.
>

Ok, we use it only to compute elapsed time.

> 2.) The other thing I had trouble with was the relative path "../"
> prepended when including tds_willconvert.h. My build procedure doesn't
> change directories to the unittests directory when building the tests,
> so this causes the compiler to look in the wrong place for the include
> file. The patch moves the include directory from the C code to the
> Makefile.am (which is a policy that appears to be observed everywhere
> else in the sources). I tried to test this on Mac OS X, but my autoconf
> version is too old, so I defer to the configuration gurus on whether the
> patch handles this correctly.
>

...

Applied

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page