--- linux-ftpd-0.17/ftpd/Makefile
+++ linux-ftpd-0.17-patched/ftpd/Makefile
@@ -19,7 +19,11 @@
 all: ftpd
 
 %.o: %.c
+ ifdef USE_SHADOW
+	$(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c
+ else
 	$(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c
+ endif
 
 ftpcmd.c: %.c: %.y
 	$(YACC) $<
--- linux-ftpd-0.17/support/Makefile
+++ linux-ftpd-0.17-patched/support/Makefile
@@ -5,7 +5,11 @@
 all: libsupport.a
 
 %.o: %.c
+ ifdef USE_SHADOW
+	$(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c
+ else
 	$(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c
+ endif
 
 libsupport.a: $(OBJS)
 	ar -cruv $@ $^
