arla on dual amd 64-bit

Garrett Wollman wollman at csail.mit.edu
Wed Aug 3 11:50:49 CEST 2005


<<On Tue, 02 Aug 2005 10:47:25 +0200 (MEST), Harald Barth <haba at pdc.kth.se> said:

>  #include <dirent.h>
>  #if DIRENT_AND_SYS_DIR_H
> +#ifndef __FreeBSD__		/* configure test ok, but compiler warns */
>  #include <sys/dir.h>
> +#endif
>  #endif
>  #elif defined(HAVE_SYS_DIR_H)

> which should be fixed by fixing the value of DIRENT_AND_SYS_DIR_H (or
> breaking it up into two flags) instead of __FreeBSD__.

The configure test that sets that flag means "it's OK to include
dirent.h and sys/dir.h together", which is true (it only generates a
warning, not an error).  It doesn't test where there is anything
useful in sys/dir.h (there is not in any *BSD system going all the way
back, which is what the warning this conditional suppresses actually
says).

> Another alternative is to do a FreeBSD specific port (more or less
> like the OpenBSD folks do, but they are currently at 0.35.7, so is
> this really the way to go?). I think all solutions which try to
> support platform dependent code stink "pick your misery" long way.

There is a port.  It has a number of patches for 6.x/7.x which I have
not yet had a chance to try out because none of my machines are yet
running it.  See <http://cvsweb.freebsd.org/ports/net/arla/files/>.

-GAWollman






More information about the Arla-drinkers mailing list