[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch to nfs addon to correct problem with latest stdint.h



FYI,

I've found the following patch necessary to get the nfs addon to
compile.  The patch resolves an incompatibility with the latest
changes made to rtems/cpukit/include/rtems/stdint.h

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@aps.anl.gov>
  Advanced Photon Source
  Argonne National Lab

--- orig/rtems-addon-packages/rtemsNfs/src/nfs.c        2005-09-02
10:40:51.000000000 -0500
+++ src/rtems-addon-packages/rtemsNfs/src/nfs.c 2005-12-27
13:31:16.757500000 -0600
@@ -2427,8 +2427,8 @@ struct rtems_libio_tt {
 static int nfs_file_open(
        rtems_libio_t *iop,
        const char    *pathname,
-       unsigned32     flag,
-       unsigned32     mode
+       rtems_unsigned32     flag,
+       rtems_unsigned32     mode
 )
 {
        iop->file_info = 0;
@@ -2443,8 +2443,8 @@ static int nfs_file_open(
 static int nfs_dir_open(
        rtems_libio_t *iop,
        const char    *pathname,
-       unsigned32     flag,
-       unsigned32     mode
+       rtems_unsigned32     flag,
+       rtems_unsigned32     mode
 )
 {
  NfsNode                node = iop->pathinfo.node_access;
@@ -2499,7 +2499,7 @@ static int nfs_dir_close(
 static int nfs_file_read(
        rtems_libio_t *iop,
        void          *buffer,
-       unsigned32     count
+       rtems_unsigned32     count
 )
 {
  readres        rr;
@@ -2544,7 +2544,7 @@ Nfs               nfs  = node->nfs;
 static int nfs_dir_read(
        rtems_libio_t *iop,
        void          *buffer,
-       unsigned32     count
+       rtems_unsigned32     count
 )
 {
  DirInfo                        di     = iop->file_info;
@@ -2603,7 +2603,7 @@ RpcUdpServer      server = ((Nfs)iop->pathinf
 static int nfs_file_write(
        rtems_libio_t *iop,
        const void    *buffer,
-       unsigned32    count
+       rtems_unsigned32    count
 )
 {
  NfsNode        node = iop->pathinfo.node_access;
@@ -2649,7 +2649,7 @@ int                       e;
  #ifdef DECLARE_BODY
 static int nfs_file_ioctl(
        rtems_libio_t *iop,
-       unsigned32     command,
+       rtems_unsigned32     command,
        void          *buffer
 )DECLARE_BODY
 #else