sunrpc

Matt Rice matt@emsllc.com
Tue Jul 9 14:48:00 GMT 2002


here is what it took to get through 'make' on Corinna's port of sunrpc 
back from B20 to 1.3
I haven't really checked out the secure_rpc directory...
I dont have all the neccesary librarys...

on a side note, 'make clean' doesnt remove .exe files...

I  got the original sources from 
http://www.geog.uni-hannover.de/grass/grass5/binary/windows_cygnus/sunrpc/

I've seen this mentioned on a few different mailing lists
let me know what you think..

matt

--- ./etc/rpcinfo.c     2002-07-09 14:23:59.000000000 -0700
+++ /home/Administrator/rpc-4.0/etc/rpcinfo.c   2002-07-09 
14:29:13.000000000 -0
700
@@ -53,9 +53,8 @@
 #ifdef __CYGWIN32__
 #include <unistd.h>
 #include <windows.h>
+#include <lm.h>
 #define USER_PRIV_ADMIN 2
-
-DWORD STDCALL NetUserGetInfo (LPWSTR, LPWSTR, DWORD, LPBYTE);
 #endif /* __CYGWIN32__ */

 #define MAXHOSTLEN 256
@@ -597,7 +596,7 @@
   PUSER_INFO_3 ui;

   MultiByteToWideChar (CP_ACP, 0, user, -1, name, 512);
-  ret = NetUserGetInfo (NULL, name, 3, (LPBYTE) &ui);
+  ret = NetUserGetInfo (NULL, name, 3, (LPBYTE *) &ui);
   return ret ? NULL : ui;
 }
 #endif /* __CYGWIN32__ */



More information about the Cygwin-apps mailing list