Subject: Re: Build errors for sbin/ccdconfig.c
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 12/09/2007 15:16:27
On Sun, 9 Dec 2007, Jared D. McNeill wrote:

>> In file included from /usr/obj/destdir/amd64/usr/include/sys/device.h:84,
>>                 from /usr/obj/destdir/amd64/usr/include/sys/disk.h:89,
>>                 from /usr/src/sbin/ccdconfig/ccdconfig.c:50:
>> /usr/obj/destdir/amd64/usr/include/sys/pmf.h:57: error: expected '=', ',', 
>> ';', 'asm' or '__attribute__' before 'pmf_event_inject'
>
> Does the following patch resolve your issue?
>
> Index: pmf.h
> ===================================================================
> RCS file: /cvsroot/src/sys/sys/pmf.h,v
> retrieving revision 1.2
> diff -u -r1.2 pmf.h
> --- pmf.h	9 Dec 2007 20:28:44 -0000	1.2
> +++ pmf.h	9 Dec 2007 23:06:44 -0000
> @@ -35,6 +35,8 @@
> #ifndef _SYS_PMF_H
> #define _SYS_PMF_H
>
> +#ifdef _KERNEL
> +
> #include <sys/callout.h>
>
> typedef enum {
> @@ -84,4 +86,6 @@
> bool		pmf_class_input_register(device_t);
> bool		pmf_class_display_register(device_t);
>
> +#endif /* !_KERNEL */
> +
> #endif /* !_SYS_PMF_H */
>

Yes, it now compiles successfully.

Thanks!


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------