summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
Diffstat (limited to 'nscd')
-rw-r--r--nscd/Makefile8
-rw-r--r--nscd/grpcache.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/nscd/Makefile b/nscd/Makefile
index d8df770fa7..79db5abd37 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -23,18 +23,20 @@ subdir	:= nscd
 
 routines := nscd_getpw_r nscd_getgr_r
 
+include ../Makeconfig
+
 # We can later add the names of other thread packages here.
-ifeq (,$(findstring linuxthreads,$(add-ons)))
+ifneq (,$(findstring linuxthreads,$(add-ons)))
 
 others := nscd
 install-sbin := nscd
 
-endif
-
 nscd-routines := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \
 		 getgrnam_r getgrgid_r dbg_log nscd_conf nscd_stat
 extra-objs := $(nscd-routines:=.o)
 
+endif
+
 distribute := nscd.h dbg_log.h $(nscd-routines:=.c) TODO nscd.conf nscd.init \
 	      nscd_proto.h
 
diff --git a/nscd/grpcache.c b/nscd/grpcache.c
index 71309f464f..9734d08510 100644
--- a/nscd/grpcache.c
+++ b/nscd/grpcache.c
@@ -19,8 +19,8 @@
 
 #include <errno.h>
 #include <grp.h>
-#include <malloc.h>
 #include <pthread.h>
+#include <stdlib.h>
 #include <string.h>
 #include <rpcsvc/nis.h>
 #include <sys/types.h>