Changeset 796


Ignore:
Timestamp:
05/10/06 11:56:21 (7 years ago)
Author:
spa1
Message:

Added a couple of necessary fixes for FreeBSD compilation - defining PATH_MAX and including unistd.h for ssize_t and off_t
stdbool.h is no longer included if you're compiling as C++ as this causes conflicts under OpenBSD

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_erf.c

    r784 r796  
    5555#else 
    5656#  include <netdb.h> 
     57#  ifndef PATH_MAX 
     58#       define PATH_MAX 4096 
     59#  endif 
    5760#endif 
    5861 
  • trunk/lib/libtrace.h.in

    r795 r796  
    9999#else 
    100100#    include <netinet/in.h> 
     101 
     102#ifndef __cplusplus 
    101103#    include <stdbool.h> 
     104#endif 
     105 
    102106#    include <sys/types.h> 
    103107#    include <sys/socket.h> 
  • trunk/lib/libtraceio.h

    r732 r796  
    1010#include <stdio.h> 
    1111#endif 
     12 
     13#include <unistd.h> 
    1214 
    1315typedef struct libtrace_io_t libtrace_io_t; 
Note: See TracChangeset for help on using the changeset viewer.