Changeset 689


Ignore:
Timestamp:
04/08/06 16:15:09 (7 years ago)
Author:
perry
Message:

More portability fixes

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/fifo.c

    r682 r689  
    3535#include <stdio.h> /* sprintf, printf */ 
    3636#include <assert.h> /* assert */ 
    37 #include <string.h> /* bzero */ 
     37#include "libtrace_int.h" 
     38 
     39#include <inttypes.h> 
     40 
    3841#include "fifo.h" 
    39 #include "libtrace_int.h" 
    40  
    41 #include <sys/types.h> 
    42  
    43 #ifdef HAVE_INTTYPES_H 
    44 # include <inttypes.h> 
    45 #else 
    46 # error "Can't find inttypes.h, this needs to be fixed" 
    47 #endif 
    48  
    49 #ifdef HAVE_STDDEF_H 
    50 # include <stddef.h> 
    51 #else 
    52 # error "Can't find stddef.h - do you define ptrdiff_t elsewhere" 
    53 #endif 
    54  
    55 #include <netinet/in.h> 
    5642 
    5743 
     
    114100} 
    115101 
    116 void tracefifo_flush(struct tracefifo_t *fifo __attribute__((unused))) { 
     102void tracefifo_flush(struct tracefifo_t *fifo UNUSED) { 
    117103        /* do nothing */ 
    118104        return; 
  • trunk/lib/fifo.h

    r577 r689  
    3232#ifndef _FIFO_H_ 
    3333#define _FIFO_H_ 
    34 #include <inttypes.h> 
    3534 
    3635struct tracefifo_t; 
Note: See TracChangeset for help on using the changeset viewer.