aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-19 18:02:50 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-19 18:02:50 +0000
commitf3d637296f1f839d4a95a849a7dbfbb600f563f1 (patch)
tree3955655b48dabd4bde8803300631e0a925b2c9a3
parentbd6256fabf6cfc3de88c255012c6c3bee1a84849 (diff)
downloadlpsm-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--Makefile11
-rw-r--r--alloc.c1
-rw-r--r--arena.c1
3 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1172916..5eb17f8 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@ $<
diff --git a/alloc.c b/alloc.c
index c24623d..2377e1f 100644
--- a/alloc.c
+++ b/alloc.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
+#include <string.h>
#ifndef NDEBUG
#include <stdio.h> /* For debugging printf() */
diff --git a/arena.c b/arena.c
index 60bb80c..8026703 100644
--- a/arena.c
+++ b/arena.c
@@ -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>