summaryrefslogtreecommitdiff
path: root/src/systime.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-06-24 20:21:20 +0300
committerEli Zaretskii <eliz@gnu.org>2012-06-24 20:21:20 +0300
commit696056c280e0e4a03e12d8d53f692c015ff19217 (patch)
tree251de12b5ca47d0d5f6de907cb070d54f8283250 /src/systime.h
parentbbf908bc692846db442374a5a91ec9e243390e3d (diff)
downloademacs-696056c280e0e4a03e12d8d53f692c015ff19217.tar.gz
Improve port of struct timespec to MS-Windows.
lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)): ($(BLD)/timespec-add.$(O)): ($(BLD)/timespec-sub.$(O)): Don't depend on $(EMACS_ROOT)/nt/inc/sys/time.h. lib/stat-time.h: lib/timespec.h: lib/utimens.h: Revert last change. src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h. (SYSTIME_H): Add nt/inc/sys/time.h. src/systime.h [WINDOWSNT]: Include sys/time.h. src/s/ms-w32.h (struct timespec): Definition moved from nt/inc/sys/time.h. Suggested by Paul Eggert <eggert@cs.ucla.edu>. nt/inc/sys/time.h (struct timespec): Don't define it here, it is now defined in src/s/ms-w32.h. Fixes: debbugs:9000
Diffstat (limited to 'src/systime.h')
-rw-r--r--src/systime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systime.h b/src/systime.h
index dd0d77c827d..0f91551239e 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -38,6 +38,10 @@ typedef unsigned long Time;
#endif
#endif
#endif
+
+#ifdef WINDOWSNT
+#include <sys/time.h> /* for 'struct timeval' */
+#endif
/* The type to use to represent temporal intervals. It can be passed
as the timeout argument to the pselect system call. */