Changeset 1977

Show
Ignore:
Timestamp:
04/16/08 20:34:21 (7 months ago)
Author:
aturner
Message:

fix compile issues under linux refs #41

Location:
features/performance
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • features/performance/configure.in

    r1970 r1977  
    132132 
    133133dnl Check for other header files 
    134 AC_CHECK_HEADERS([fcntl.h stddef.h sys/socket.h  arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h sys/io.h architecture/i386/pio.h sys/select.h]) 
     134AC_CHECK_HEADERS([fcntl.h stddef.h sys/socket.h  arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h sys/io.h architecture/i386/pio.h sys/select.h sys/event.h]) 
    135135 
    136136dnl OpenBSD has special requirements 
     
    10371037dnl Do we support the RDTSC? 
    10381038case $host in 
    1039     i386-*|x86_64-*|powerpc-*) 
     1039    i?86-*|x86_64-*|powerpc-*) 
    10401040    AC_DEFINE([HAVE_RDTSC], [1], [Does the CPU support the RDTSC?]) 
    10411041    ;; 
  • features/performance/src/common/timer.h

    r1976 r1977  
    9797#endif 
    9898 
    99 #ifndef ROUND_TIMESPEC_TO_MICROSEC(ts) 
     99#ifndef ROUND_TIMESPEC_TO_MICROSEC 
    100100#define ROUND_TIMESPEC_TO_MICROSEC(ts)      \ 
    101101    do {                                    \ 
     
    230230    } 
    231231    last.tv_sec = now.tv_sec; 
    232     last.tv_nsec = now.tv_nsec; 
     232    last.tv_usec = now.tv_usec; 
    233233#endif 
    234234} 
  • features/performance/src/config.h.in

    r1970 r1977  
    283283#undef HAVE_SYS_DIR_H 
    284284 
     285/* Define to 1 if you have the <sys/event.h> header file. */ 
     286#undef HAVE_SYS_EVENT_H 
     287 
    285288/* Define to 1 if you have the <sys/io.h> header file. */ 
    286289#undef HAVE_SYS_IO_H 
     
    412415#undef RETSIGTYPE 
    413416 
    414 /* The size of `char*', as computed by sizeof. */ 
     417/* The size of a `char*', as computed by sizeof. */ 
    415418#undef SIZEOF_CHARP 
    416419 
    417 /* The size of `int', as computed by sizeof. */ 
     420/* The size of a `int', as computed by sizeof. */ 
    418421#undef SIZEOF_INT 
    419422 
    420 /* The size of `long', as computed by sizeof. */ 
     423/* The size of a `long', as computed by sizeof. */ 
    421424#undef SIZEOF_LONG 
    422425 
    423 /* The size of `short', as computed by sizeof. */ 
     426/* The size of a `short', as computed by sizeof. */ 
    424427#undef SIZEOF_SHORT 
    425428 
     
    470473#undef malloc 
    471474 
    472 /* Define to `unsigned int' if <sys/types.h> does not define. */ 
     475/* Define to `unsigned' if <sys/types.h> does not define. */ 
    473476#undef size_t 
    474477 
  • features/performance/src/sleep.c

    r1972 r1977  
    3838#include <sys/time.h> 
    3939#include <unistd.h>      
    40 #include <sys/event.h> 
    4140#include <errno.h> 
    4241#include <string.h> 
     42 
     43#ifdef HAVE_SYS_EVENT 
     44#include <sys/event.h> 
     45#endif 
    4346 
    4447/* necessary for ioport_sleep() functions */ 
  • features/performance/src/sleep.h

    r1974 r1977  
    4242#include <sys/time.h> 
    4343#include <unistd.h>      
    44 #include <sys/event.h> 
    4544#include <errno.h> 
    4645#include <string.h> 
     46#ifdef HAVE_SYS_EVENT 
     47#include <sys/event.h> 
     48#endif 
    4749 
    4850/* necessary for ioport_sleep() functions */ 
  • features/performance/src/tcpreplay_opts.def

    r1970 r1977  
    156156 
    157157flag = { 
    158     ifdef       = HAVE_RDTSC; 
    159158    name        = rdtsc-clicks; 
    160159    max         = 1;