commit e2356ae8c71ec2b6313f262c92b8371f7f32ab90
parent e74f2fd582878416286af3560d785762be4dd9b0
Author: hhvn <dev@hhvn.uk>
Date: Sun, 27 Mar 2022 14:34:11 +0100
Move strlcpy and wcslcpy to their own directory
Diffstat:
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
@@ -54,7 +54,7 @@ ${CC} -o test test.c >/dev/null 2>/dev/null && ./test >/dev/null 2>/dev/null &&
cat >> config.mk <<- EOF
# linking an included version of strlcpy, as your system doesn't have it
CFLAGS += -DHIRC_STRLCPY
- SRC += src/strlcpy.c
+ SRC += src/openbsd/strlcpy.c
EOF
}
@@ -70,6 +70,6 @@ ${CC} -o test test.c >/dev/null 2>/dev/null && ./test >/dev/null 2>/dev/null &&
cat >> config.mk <<- EOF
# linking an included version of wcslcpy, as your system doesn't have it
CFLAGS += -DHIRC_WCSLCPY
- SRC += src/wcslcpy.c
+ SRC += src/openbsd/wcslcpy.c
EOF
}
diff --git a/src/strlcpy.c b/src/openbsd/strlcpy.c
diff --git a/src/wcslcpy.c b/src/openbsd/wcslcpy.c