Mercurial > hg > nginx-quic
view auto/lib/sha1/makefile.msvc @ 4516:b927410d9638 stable-1.0
Merge of r4499: workaround for fs_size on ZFS (ticket #46).
ZFS reports incorrect st_blocks until file settles on disk, and this
may take a while (i.e. just after creation of a file the st_blocks value
is incorrect). As a workaround we now use st_blocks only if
st_blocks * 512 > st_size, this should fix ZFS problems while still
preserving accuracy for other filesystems.
The problem had appeared in r3900 (1.0.1).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Mar 2012 13:20:40 +0000 |
parents | 4919fb357a5d |
children |
line wrap: on
line source
# Copyright (C) Igor Sysoev # Copyright (C) Nginx, Inc. CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN !IF "$(SHA1_ASM)" == "YES" sha1.lib: cd $(SHA1) cl -c $(CFLAGS) -D SHA1_ASM sha1dgst.c link -lib -out:sha1.lib sha1dgst.obj asm/s-win32.obj !ELSE sha1.lib: cd $(SHA1) cl -c $(CFLAGS) sha1dgst.c link -lib -out:sha1.lib sha1dgst.obj !ENDIF