summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-10 13:32:23 +0300
committerRoy Marples <roy@marples.name>2020-10-10 13:32:23 +0300
commit8366c54b425ca9cb77db2a24d96a120139d8cbe6 (patch)
treeced6598e28e501bb0fae09f4f931fceb623d7090 /configure
parent2e4aeaf7d82decbdefd34e0a7333c4ad21dd6cfe (diff)
downloaddhcpcd-8366c54b425ca9cb77db2a24d96a120139d8cbe6.tar.xz
Just give up with setproctitle on Illumos
Their ps tools go out of their way to only show how it was launched :/
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index 60381cf2..72b133c1 100755
--- a/configure
+++ b/configure
@@ -968,8 +968,17 @@ EOF
rm -f _setproctitle.c _setproctitle
fi
if [ "$SETPROCTITLE" = no ]; then
- echo "COMPAT_SRCS+= compat/setproctitle.c" >>$CONFIG_MK
- echo "#include \"compat/setproctitle.h\"" >>$CONFIG_H
+ case "$OS" in
+ solaris*|sunos*)
+ echo "$OS has no support for setting process title"
+ echo "#define setproctitle(...)" >>$CONFIG_H
+ ;;
+ *)
+ echo "COMPAT_SRCS+= compat/setproctitle.c" >>$CONFIG_MK
+ echo "#include \"compat/setproctitle.h\"" \
+ >>$CONFIG_H
+ ;;
+ esac
fi
if [ -z "$STRLCPY" ]; then