Move declatation of struct timespec to its own include files for

systems without it since it needs time_t defined.
This commit is contained in:
Todd C. Miller
2005-06-23 03:04:35 +00:00
parent 6cbaca026f
commit 46230280c8

View File

@@ -14,14 +14,18 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include <config.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <stdio.h> #include <stdio.h>
#if TIME_WITH_SYS_TIME #if TIME_WITH_SYS_TIME
# include <time.h> # include <time.h>
#endif #endif
#ifndef HAVE_TIMESPEC
# include <emul/timespec.h>
#endif
#include <config.h>
#include <compat.h> #include <compat.h>
#ifndef lint #ifndef lint