cdp_c has incomplete type error

Gary Jennejohn gljennjohn at googlemail.com
Sat Apr 16 08:14:01 UTC 2011


On Sat, 16 Apr 2011 10:52:36 +0900
Jun Furukawa <z0.0z.furukawa at gmail.com> wrote:

> When I compiled the following C language code which hooks vn_write function
> on FreeBSD8.2,
> I get "error: field 'cdp_c' has incomplete type" error.
> Here we list the C source code, Makefile and the compiler messages.
> Can anyone help me please?
[code deleted]

You have to include at least sys/conf.h, which is where struct cdev is
defined.

-- 
Gary Jennejohn


More information about the freebsd-fs mailing list