--- smbwrapper/smbw.c.orig Mon Jan 8 12:37:48 2001 +++ smbwrapper/smbw.c Fri Apr 13 13:09:00 2001 @@ -22,6 +22,11 @@ #include "includes.h" #include "realcalls.h" +#if defined(__USLC__) && defined(HAVE_SYS_ACL_H) +#define GETACL ACL_GET +#define GETACLCNT ACL_CNT +#endif + pstring smbw_cwd; static struct smbw_file *smbw_files; @@ -1462,7 +1467,11 @@ /***************************************************** say no to acls *******************************************************/ +#if defined(__USLC__) + int smbw_acl(const char *pathp, int cmd, int nentries, void *aclbufp) +#else int smbw_acl(const char *pathp, int cmd, int nentries, aclent_t *aclbufp) +#endif { if (cmd == GETACL || cmd == GETACLCNT) return 0; errno = ENOSYS; @@ -1474,7 +1483,11 @@ /***************************************************** say no to acls *******************************************************/ +#if defined(__USLC__) + int smbw_facl(int fd, int cmd, int nentries, void *aclbufp) +#else int smbw_facl(int fd, int cmd, int nentries, aclent_t *aclbufp) +#endif { if (cmd == GETACL || cmd == GETACLCNT) return 0; errno = ENOSYS; --- tdb/tdb.c.orig Fri Apr 13 05:58:34 2001 +++ tdb/tdb.c Fri Apr 13 13:34:18 2001 @@ -856,7 +856,11 @@ { TDB_DATA key, dbuf; struct list_struct rec; +#if defined(__USLC__) + struct tdb_traverse_lock tl = { (struct tdb_traverse_lock *)0, 0, 0 }; +#else struct tdb_traverse_lock tl = { NULL, 0, 0 }; +#endif int ret, count = 0; /* This was in the initializaton, above, but the IRIX compiler --- utils/torture.c.orig Fri Mar 30 13:53:26 2001 +++ utils/torture.c Fri Apr 13 13:09:01 2001 @@ -2703,7 +2703,11 @@ dbf = stdout; +#if defined(__USLC__) + setbuf(stdout, NULL); +#else setbuffer(stdout, NULL, 0); +#endif charset_initialise(); --- utils/locktest.c.orig Fri Sep 29 13:18:14 2000 +++ utils/locktest.c Fri Apr 13 13:09:01 2001 @@ -34,7 +34,7 @@ #define FILENAME "\\locktest.dat" #define LOCKRANGE 1000 -#define LOCKBASE 0; +#define LOCKBASE 0 /* #define LOCKBASE (0x40000000 - 50) @@ -59,6 +59,7 @@ char needed; }; +#ifndef __USLC__ static struct record preset[] = { #if 0 {36, 5, 0, 0, 0, 8, 1}, @@ -67,6 +68,7 @@ {99, 11, 0, 0, 7, 1, 1}, #endif }; +#endif /* __USLC__) */ static struct record *recorded; @@ -378,20 +380,23 @@ recorded = (struct record *)malloc(sizeof(*recorded) * numops); for (n=0; n