Changeset 1425:46089a7c1e48 in roaraudio


Ignore:
Timestamp:
03/26/09 18:01:37 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for sys/types.h and fcntl.h

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1423 r1425  
    594594echo >&3 
    595595 
     596test_lib_defmake ROAR_HAVE_H_SYS_TYPES   %            sys/types.h   c          -- sys/types.h 
     597test_lib_defmake ROAR_HAVE_H_FCNTL       %            fcntl.h       c          -- fcntl.h 
     598 
     599echo >&3 
     600 
    596601# add a better test here 
    597602test_lib 'linux sendfile()'       -- sys/sendfile.h && echo '#define ROAR_HAVE_LINUX_SENDFILE' >&3 
  • include/libroar/libroar.h

    r1422 r1425  
    4848#endif 
    4949 
     50#ifdef ROAR_HAVE_H_FCNTL 
    5051#include <fcntl.h> 
     52#endif 
    5153 
    5254#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 
  • include/roaraudio.h

    r1424 r1425  
    4848#include <string.h> 
    4949#include <errno.h> 
     50 
     51#ifdef ROAR_HAVE_H_SYS_TYPES 
    5052#include <sys/types.h> 
     53#endif 
     54 
    5155#include <limits.h> 
    5256#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 
Note: See TracChangeset for help on using the changeset viewer.