Changeset 6

Show
Ignore:
Timestamp:
03/11/06 17:15:25 (8 years ago)
Author:
richdawe
Message:

Build a basic shared library on Linux; may not work!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sol_compat.h

    r2 r6  
    66#ifndef _EC_UMEM_SOL_COMPAT_H_ 
    77#define _EC_UMEM_SOL_COMPAT_H_ 
     8 
     9#include "config.h" 
     10 
     11#include <stdint.h> 
     12#include <pthread.h> 
     13 
     14#define INLINE inline 
     15#define THR_RETURN void * 
     16#define THR_API 
    817 
    918#if defined(__MACH__) || defined(_WIN32) 
     
    9099#endif 
    91100 
    92 #include "ec_atomic.h" 
     101/*#include "ec_atomic.h"*/ 
    93102 
    94103#define P2PHASE(x, align)    ((x) & ((align) - 1)) 
  • trunk/umem_fail.c

    r2 r6  
    3939#include <stdarg.h> 
    4040#include <string.h> 
     41#include <stdio.h> 
    4142 
    4243#include "misc.h" 
    43 #include "util.h" 
     44/*#include "util.h"*/ 
    4445 
    4546static volatile int umem_exiting = 0; 
     
    127128 
    128129        va_start(va, format); 
    129         ec_debug_vprintf(DCRITICAL, DMEM, format, va); 
     130        /*ec_debug_vprintf(DCRITICAL, DMEM, format, va);*/ 
     131        fvprintf(stderr, format, va); 
    130132        va_end(va); 
    131133         
  • trunk/vmem_mmap.c

    r2 r6  
    4040#include <sys/sysmacros.h> 
    4141#endif 
     42 
     43#include <unistd.h> 
    4244 
    4345#include "vmem_base.h"