Only refer to S_ISVTX if S_ISVTX is defined.
authorWayne Davison <wayned@samba.org>
Fri, 10 Jan 2003 20:08:43 +0000 (20:08 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 10 Jan 2003 20:08:43 +0000 (20:08 +0000)
lib/permstring.c

index a253f07..fc75d08 100644 (file)
@@ -47,8 +47,10 @@ void permstring(char *perms,
        if (mode & S_ISGID)
                perms[6] = (mode & S_IXGRP) ? 's' : 'S';
        
+#ifdef S_ISVTX
        if (mode & S_ISVTX)
                perms[9] = (mode & S_IXOTH) ? 't' : 'T';
+#endif
                
        if (S_ISLNK(mode)) perms[0] = 'l';
        if (S_ISDIR(mode)) perms[0] = 'd';