Hi All,
I had been compiling a program in gcc and I have been bogged down with
this error.
Any help is greatly appreciated.
uio_bits.h:44: error: expected constructor, destructor, or type
conversion before 'struct'
the uio_bit.h header file contains:
#ifndef _BITS_UIO_H
#define _BITS_UIO_H 1
#include <stdlib.h>
#include <sys/types.h>
/* We should normally use the Linux kernel header file to define this
type and macros but this calls for trouble because of the header
includes other kernel headers. */
/* Size of object which can be written atomically.
This macro has different values in different kernel versions. The
latest versions of the kernel use 1024 and this is good choice.
Since
the C library implementation of readv/writev is able to emulate the
functionality even if the currently running kernel does not support
this large value the readv/writev call will not fail because of
this. */
#define UIO_MAXIOV 1024
/* Structure for scatter/gather I/O. */
struct iovec
{
void *iov_base; /* Pointer to data. */
size_t iov_len; /* Length of data. */
};
#endif