1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/ftp/wu-ftpd/files/patch-al
Andrey A. Chernov 74cad0bec2 Fix broken strcasestr() implementation.
Use FreeBSD's strcasestr() if present.
2001-10-10 03:23:29 +00:00

21 lines
540 B
Plaintext

--- support/makefiles/Makefile.fbs.orig Sat Jul 1 22:22:55 2000
+++ support/makefiles/Makefile.fbs Wed Oct 10 07:11:36 2001
@@ -33,7 +33,14 @@
LIBC = /usr/lib/libc.a
IFLAGS =
LFLAGS =
-CFLAGS = -O ${IFLAGS} ${LFLAGS}
+CFLAGS += ${IFLAGS} ${LFLAGS}
-SRCS = strcasestr.c authuser.c ftw.c
-OBJS = strcasestr.o authuser.o ftw.o
+SRCS = authuser.c ftw.c
+OBJS = authuser.o ftw.o
+
+HAVE_STRSTR!= (nm ${LIBC} | grep -q strcasestr) || echo "NO"
+
+.if ${HAVE_STRSTR} == "NO"
+SRCS += strcasestr.c
+OBJS += strcasestr.o
+.endif