summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/test/Makefile2
-rw-r--r--lib/libc_r/test/guard_b.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc_r/test/Makefile b/lib/libc_r/test/Makefile
index 0eb530c..98edbb2 100644
--- a/lib/libc_r/test/Makefile
+++ b/lib/libc_r/test/Makefile
@@ -26,7 +26,7 @@ CFLAGS := -Wall -pipe -g3
LDFLAGS_A := -static
LDFLAGS_P := -pg
LDFLAGS_S :=
-LIBS := -lc_r
+LIBS := -lthr
# Flags passed to verify. "-v" or "-u" may be useful.
VFLAGS :=
diff --git a/lib/libc_r/test/guard_b.c b/lib/libc_r/test/guard_b.c
index 42bf4ed..3824c07 100644
--- a/lib/libc_r/test/guard_b.c
+++ b/lib/libc_r/test/guard_b.c
@@ -34,6 +34,7 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <limits.h>
#include <pthread.h>
OpenPOWER on IntegriCloud