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
commita248a3c02ef4d400b14fef0ec5af7fe991af8baf (patch)
treea6d49ce6ca83b969686594e98fed2d9499cd0e21 /configure
parent2d1c45a943a06ad78905ae8aac8704a78648b1f6 (diff)
downloaddhcpcd-a248a3c02ef4d400b14fef0ec5af7fe991af8baf.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