Changeset 1727 for zzuf


Ignore:
Timestamp:
Feb 1, 2007, 4:57:10 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Only include <sys/time.h> conditionally.
Location:
zzuf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1726 r1727  
    2828AC_SUBST(DLL_LDFLAGS)
    2929
    30 AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h)
     30AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)
    3131
    3232AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
  • zzuf/trunk/src/timer.c

    r1702 r1727  
    2727#   include <windows.h>
    2828#endif
     29#if defined HAVE_SYS_TIME_H
     30#   include <sys/time.h>
     31#endif
    2932#include <stdio.h>
    30 #include <sys/time.h>
    3133#include <time.h>
    3234
  • zzuf/trunk/src/zzuf.c

    r1720 r1727  
    4949#   include <sys/wait.h>
    5050#endif
    51 #include <sys/time.h>
    5251#if defined HAVE_SYS_RESOURCE_H
    5352#   include <sys/resource.h>
Note: See TracChangeset for help on using the changeset viewer.