win32: only declare struct timespec when needed
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 30 May 2012 13:47:22 +0000 (15:47 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 31 May 2012 19:39:05 +0000 (21:39 +0200)
commit7a791e7a1e3644ba41fa8c51d865f750affe71d2
tree28280e233f242e6c80996ed746555888ef15cb58
parent8682557ef02c00cc887bac7ee6fc62a690a86917
win32: only declare struct timespec when needed

To make mingw cross compilation on Fedora 17 work.

[CC] src/common/autobuf.c
In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/time.h:277:0,
                 from src/defs.h:54,
                 from src/common/autobuf.h:47,
                 from src/common/autobuf.c:42:
/usr/i686-w64-mingw32/sys-root/mingw/include/sys/timeb.h:90:8: error: redefinition of 'struct timespec'
In file included from src/defs.h:46:0,
                 from src/common/autobuf.h:47,
                 from src/common/autobuf.c:42:
./src/win32/sys/time.h:82:8: note: originally defined here

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/win32/sys/time.h