]> granicus.if.org Git - sudo/commitdiff
Move declatation of struct timespec to its own include files for
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)
systems without it since it needs time_t defined.

gettime.c

index 5981fc7c8d60f315d7f66add949d7a3ef31c31b4..e4d7c64bf6649177809d7a392c10f1a48d58e32b 100644 (file)
--- a/gettime.c
+++ b/gettime.c
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <config.h>
+
 #include <sys/types.h>
 #include <sys/time.h>
 #include <stdio.h>
 #if TIME_WITH_SYS_TIME
 # include <time.h>
 #endif
+#ifndef HAVE_TIMESPEC
+# include <emul/timespec.h>
+#endif
 
-#include <config.h>
 #include <compat.h>
 
 #ifndef lint