patch to fix 'incomplete type' errors when building nfs addon under cygwin

Thomas Fors tom at fors.net
Tue Dec 27 23:42:28 UTC 2005


FYI,

The following patch fixes the below errors when building the nfs addon
under cygwin.

/usr/local/rtems/rtems-4.7/m68k-rtems4.7/uC5282/lib/include/sys/uio.h:70:
error: field 'uio_segflg' has incomplete type
/usr/local/rtems/rtems-4.7/m68k-rtems4.7/uC5282/lib/include/sys/uio.h:71:
error: field 'uio_rw' has incomplete type

Platform: cygwin
Target: uC5282
GCC: 4.0.2
rtems: cvs checkout -D 2005-12-26
addons: cvs checkout -D 2005-12-26

--
 Thomas Fors <tfors at aps.anl.gov>
 Advanced Photon Source
 Argonne National Lab



--- /usr/local/orig/uio.h       2005-12-27 17:25:33.788750000 -0600
+++ /usr/local/src/rtems/cpukit/libnetworking/sys/uio.h 2005-12-27
17:26:27.820000000 -0600
@@ -48,7 +48,6 @@ struct iovec {
        size_t   iov_len;       /* Length. */
 };

-#if __BSD_VISIBLE
 enum   uio_rw { UIO_READ, UIO_WRITE };

 /* Segment flag values. */
@@ -58,7 +57,6 @@ enum uio_seg {
        UIO_USERISPACE,         /* from user I space */
        UIO_NOCOPY              /* don't copy, already in object */
 };
-#endif

 #ifdef _KERNEL



More information about the users mailing list