diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-01-01 00:44:06 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-01-01 00:44:06 +0000 |
commit | da0f5d253a27057bd02b78a66f70e03cc3928f08 (patch) | |
tree | 54a1cea103426c6e406a443c458b5a8abdf3214c /converter/ppm/ppmtompeg | |
parent | 5f39955d76686628f2a4244a12134d608ec1c6da (diff) | |
download | netpbm-mirror-da0f5d253a27057bd02b78a66f70e03cc3928f08.tar.gz netpbm-mirror-da0f5d253a27057bd02b78a66f70e03cc3928f08.tar.xz netpbm-mirror-da0f5d253a27057bd02b78a66f70e03cc3928f08.zip |
Fix clock()/times() alternation
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@530 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ppmtompeg')
-rw-r--r-- | converter/ppm/ppmtompeg/iframe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/converter/ppm/ppmtompeg/iframe.c b/converter/ppm/ppmtompeg/iframe.c index 17ddc7c0..7552f413 100644 --- a/converter/ppm/ppmtompeg/iframe.c +++ b/converter/ppm/ppmtompeg/iframe.c @@ -42,11 +42,11 @@ * HEADER FILES * *==============*/ +#include <time.h> /* Defines CLOCKS_PER_SEC, if this system has clock() */ -#ifdef CLOCKS_PER_SEC -#include <times.h> -#else -#include <sys/times.h> +#ifndef CLOCKS_PER_SEC + /* System doesn't have clock(); we assume it has times() instead */ + #include <sys/times.h> #endif #include <sys/types.h> |