diff options
author | H. Peter Anvin <hpa@zytor.com> | 2001-10-19 18:02:50 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2001-10-19 18:02:50 +0000 |
commit | f3d637296f1f839d4a95a849a7dbfbb600f563f1 (patch) | |
tree | 3955655b48dabd4bde8803300631e0a925b2c9a3 | |
parent | bd6256fabf6cfc3de88c255012c6c3bee1a84849 (diff) | |
download | lpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.tar.gz lpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.tar.xz lpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.zip |
Version 0.1.1 - make compile on gcc 3.0.2lpsm-0.1.1
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | alloc.c | 1 | ||||
-rw-r--r-- | arena.c | 1 |
3 files changed, 8 insertions, 5 deletions
@@ -1,6 +1,6 @@ TEST = teststore test_mmap ftrunctest testbuddy testalloc testrecovery SONAME = libpsm.so.0 -VERSION = 0.1.0 +VERSION = 0.1.1 LIBPSM = libpsm.so libpsm.a OSOBJ = arena.o alloc.o @@ -13,6 +13,7 @@ LDFLAGS = # This is for debugging # CFLAGS = -I. -Wall -O -g -D_FILE_OFFSET_BITS=64 # LDFLAGS = -g +LIBS = libpsm.a -lm PICFLAGS = $(CFLAGS) -fPIC SOFLAGS = -shared @@ -42,16 +43,16 @@ libpsm.a: $(OSOBJ) $(RANLIB) libpsm.a teststore: teststore.o libpsm.a - $(CC) $(LDFLAGS) -o $@ $< libpsm.a + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) testbuddy: testbuddy.o libpsm.a - $(CC) $(LDFLAGS) -o $@ $< libpsm.a + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) testalloc: testalloc.o libpsm.a - $(CC) $(LDFLAGS) -o $@ $< libpsm.a + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) testrecovery: testrecovery.o libpsm.a - $(CC) $(LDFLAGS) -o $@ $< libpsm.a + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) test_mmap: test_mmap.o $(CC) $(LDFLAGS) -o $@ $< @@ -28,6 +28,7 @@ #include <stdlib.h> #include <inttypes.h> #include <limits.h> +#include <string.h> #ifndef NDEBUG #include <stdio.h> /* For debugging printf() */ @@ -32,6 +32,7 @@ #include <sys/mman.h> #include <sys/stat.h> #include <sched.h> +#include <string.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> |