summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-10-14 21:49:31 +0100
committerRoy Marples <roy@marples.name>2019-10-14 21:49:31 +0100
commitf12658df3e0e0f89169d0615037012169dc63e58 (patch)
treea6d49ce6ca83b969686594e98fed2d9499cd0e21 /configure
parent8419bbd5b6e3709854d2cff977729f28ed84bf4a (diff)
downloaddhcpcd-f12658df3e0e0f89169d0615037012169dc63e58.tar.xz
compat: Add setproctitle from LXC
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 6b29444a..f1771283 100755
--- a/configure
+++ b/configure
@@ -818,8 +818,9 @@ EOF
echo "$SETPROCTITLE"
rm -f _setproctitle.c _setproctitle
fi
-if [ "$SETPROCTITLE" = yes ]; then
- echo "#define HAVE_SETPROCTITLE" >>$CONFIG_H
+if [ "$SETPROCTITLE" = no ]; then
+ echo "COMPAT_SRCS+= compat/setproctitle.c" >>$CONFIG_MK
+ echo "#include \"compat/setproctitle.h\"" >>$CONFIG_H
fi
if [ -z "$STRLCPY" ]; then