Changeset 1339

Show
Ignore:
Timestamp:
02/04/08 16:34:39 (9 months ago)
Author:
spa1
Message:
  • Tools that use PRIu64 or similar for output need to include lt_inttypes.h otherwise they won't compile on systems that don't define them - e.g. OpenBSD 3.5
  • Also fixed a variable in ecn_report that wasn't declared at the start of the code block
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/stats/stats.c

    r1292 r1339  
    55#include <stdlib.h> 
    66#include <string.h> 
     7#include "lt_inttypes.h" 
    78 
    89double lastts = 0.0; 
  • trunk/tools/tracereport/ecn_report.c

    r1214 r1339  
    2929{ 
    3030        int i,j; 
     31        int total = 0; 
    3132         
    3233        FILE *out = fopen("ecn.rpt", "w"); 
     
    8384        } 
    8485         
    85         int total = 0; 
    8686        for(i=0;i<4;i++){ 
    8787                for(j=1;j<4;j++) 
  • trunk/tools/tracereport/tracereport.h

    r1310 r1339  
    11#ifndef TRACEREPORT_H 
    22#define TRACEREPORT_H 
     3 
     4#include "lt_inttypes.h" 
    35 
    46typedef struct { 
  • trunk/tools/tracestats/tracestats.c

    r1310 r1339  
    5454 
    5555#include "libtrace.h" 
    56  
    57 #ifndef PRIu64 
    58         #define PRIu64 "llu" 
    59 #endif 
     56#include "lt_inttypes.h" 
    6057 
    6158struct libtrace_t *trace;