• Eli Zaretskii's avatar
    Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu. · 388cdec0
    Eli Zaretskii authored
     nt/inc/sys/time.h (struct timespec): Define.
     lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/dtotimespec.$(O),
     $(BLD)/gettime.$(O), $(BLD)/timespec-add.$(O), and
     $(BLD)/timespec-sub.$(O).
     ($(BLD)/dtotimespec.$(O)):
     ($(BLD)/gettime.$(O)):
     ($(BLD)/timespec-add.$(O)):
     ($(BLD)/timespec-sub.$(O)): New dependencies.
     lib/stat-time.h:
     lib/timespec.h:
     lib/utimens.h: Include sys/time.h
     src/w32.c (fdutimens): New function.
     src/w32proc.c (sys_select): Adapt to change in the EMACS_TIME type.
     src/s/ms-w32.h (pselect): Redirect to sys_select.
     src/sysselect.h [WINDOWSNT]: Don't include sys/select.h.
    
    Fixes: debbugs:9000
    388cdec0
w32.c 162 KB