[PATCHES] kfreebsd support

Guillem Jover guillem at hadrons.org
Sat Jan 9 04:36:20 PST 2010


Hi!

On Fri, 2010-01-08 at 20:12:17 +0100, Michael Biebl wrote:
> in Debian we currently still need to ship quite a few patches to make
> hal 0.5.14 build on kfreebsd.
> 
> I rebased the Debian kfreebsd patches on top of current master and
> post them here for review.

> From d0c058087e33adce4240c3d8d9816aec544e2b63 Mon Sep 17 00:00:00 2001
> From: Michael Biebl <biebl at debian.org>
> Date: Wed, 11 Nov 2009 05:49:53 +0100
> Subject: [PATCH 1/5] Disable usage of setproctitle on kfreebsd

> diff --git a/hald/freebsd/addons/addon-mouse.c b/hald/freebsd/addons/addon-mouse.c
> index 51194ca..fd81437 100644
> --- a/hald/freebsd/addons/addon-mouse.c
> +++ b/hald/freebsd/addons/addon-mouse.c
> @@ -322,7 +322,9 @@ main (int argc, char **argv)
>    if (! addon.device_file)
>      goto end;
>  
> +#ifndef __GLIBC__
>    setproctitle("%s", addon.device_file);
> +#endif
>  
>    if (! libhal_device_addon_is_ready(hfp_ctx, hfp_udi, &hfp_error))
>      goto end;

This specific patch could be avoided by using sys/cdefs.h from libbsd.

regards,
guillem


More information about the hal mailing list