summaryrefslogtreecommitdiff
path: root/libutil
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-05 19:26:45 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-05 19:26:45 +0000
commit562d9dc3310f5baf3c5f198d1c5689b16110bee0 (patch)
tree79fb30151c9064c421c485ef0f7569cedd2ade41 /libutil
parentfcc76ccf9ce355ef3c897826d9dde8530707527a (diff)
forkpty.c uses fork(), and so must be disabled when HAS_MMU=false
-Erik
Diffstat (limited to 'libutil')
-rw-r--r--libutil/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libutil/Makefile b/libutil/Makefile
index 7210aaaa4..399d52b2d 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -28,7 +28,10 @@ LIBUTIL=libutil.a
LIBUTIL_SHARED=libutil.so
LIBUTIL_SHARED_FULLNAME=libutil-$(MAJOR_VERSION).$(MINOR_VERSION).so
-CSRC=forkpty.c login.c login_tty.c logout.c logwtmp.c openpty.c
+CSRC=login.c login_tty.c logout.c logwtmp.c openpty.c
+ifeq ($(strip $(HAS_MMU)),true)
+ CSRC+=forkpty.c
+endif
OBJS=$(patsubst %.c,%.o, $(CSRC))
all: $(OBJS) $(LIBC)