Subject: Re: Build errors for sbin/ccdconfig.c
To: Paul Goyette <paul@whooppee.com>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: current-users
Date: 12/09/2007 18:06:01
On Sun, 9 Dec 2007, Paul Goyette wrote:
> I'm getting lots of these on both port amd64 and i386
>
> 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?

Cheers,
Jared

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 */