gst-libav1: update to 1.24.11
[oi-userland.git] / components / library / uwimap / patches / z_10ec_imap_flocksim.c.patch
blob9729a10a0f048633fa3d15dfa51e5bb72b202ece
1 --- imap-2007e/src/osdep/unix/flocksim.c.ORIG Sun Feb 8 18:01:48 2009
2 +++ imap-2007e/src/osdep/unix/flocksim.c Sun Feb 8 18:01:59 2009
3 @@ -52,7 +52,9 @@
4 char tmp[MAILTMPLEN];
5 int logged = 0;
6 struct stat sbuf;
7 +#if !defined(NOUSTAT)
8 struct ustat usbuf;
9 +#endif
10 struct flock fl;
11 /* lock zero bytes at byte 0 */
12 fl.l_whence = SEEK_SET; fl.l_start = fl.l_len = 0;
13 @@ -129,7 +131,9 @@
14 ((vsbuf.f_basetype[0] == 'n') || (vsbuf.f_basetype[0] == 'a')))
15 return 0;
16 #endif /* NOFSTATVFS */
17 +#if !defined(NOUSTAT)
18 if (!ustat (sbuf.st_dev,&usbuf) && !++usbuf.f_tinode) return 0;
19 +#endif
22 /* do the lock */