Changeset 3139:f999c34625be in roaraudio
- Timestamp:
- 01/15/10 11:39:36 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroaross
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/Makefile
r3138 r3139 11 11 CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 12 12 LDFLAGS = -g $(SHARED) $(LDPATH) 13 LIBS = $(LIBROAR) 13 LIBS = $(LIBROAR) -ldl 14 14 15 15 all: ${TARGETS} -
libroaross/libroaross.c
r3138 r3139 56 56 57 57 #include <sys/stat.h> 58 #include <dlfcn.h> 59 60 #if defined(RTLD_NEXT) 61 #define REAL_LIBC RTLD_NEXT 62 #else 63 #define REAL_LIBC ((void *) -1L) 64 #endif 58 65 59 66 #define _MAX_POINTER 8 … … 85 92 static void _init_os (void) { 86 93 memset(&_os, 0, sizeof(_os)); 94 95 _os.open = dlsym(REAL_LIBC, "open"); 96 _os.close = dlsym(REAL_LIBC, "close"); 97 _os.write = dlsym(REAL_LIBC, "write"); 98 _os.read = dlsym(REAL_LIBC, "read"); 87 99 } 88 100
Note: See TracChangeset
for help on using the changeset viewer.