/* otherwise, it is time to nag the user */
lastWarnTime = now;
+#ifdef AFS_LINUX26_ENV
+ afs_warn
+ ("afs: byte-range locks only enforced for processes on this machine.\n");
+#else
afs_warn
("afs: byte-range lock/unlock ignored; make sure no one else is running this program.\n");
+#endif
}
#endif
/* Java VMs ask for l_len=(long)-1 regardless of OS/CPU; bottom 32 bits
* sometimes get masked off by OS */
- if ((sizeof(af->l_len) == 8) && (af->l_len == 0x7ffffffffffffffe))
+ if ((sizeof(af->l_len) == 8) && (af->l_len == 0x7ffffffffffffffeLL))
af->l_len = 0;
/* next line makes byte range locks always succeed,
* even when they should block */