aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-05-05 16:39:59 +0100
committerRoy Marples <roy@marples.name>2009-05-05 16:39:59 +0100
commit7c81f74b60b9d15ed472f1ca63cab0a105a84c08 (patch)
treead4ed2dbd8ce8d959a9d7d09342c5f41f2938984
parentd441bf15854b585a0e53019f12f581ddb90dee55 (diff)
Fix compile on NetBSD
-rw-r--r--sh/functions.sh.in5
-rw-r--r--src/librc/librc.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/sh/functions.sh.in b/sh/functions.sh.in
index 32fd92a3..3f4a15ac 100644
--- a/sh/functions.sh.in
+++ b/sh/functions.sh.in
@@ -65,11 +65,6 @@ if [ -n "$ZSH_VERSION" ]; then
setopt NO_GLOB_SUBST
fi
-# Use a special shell feature to save forking
-if [ -n "$BASH_VERSION" -o "$ZSH_VERSION" ]; then
- shell_var() { LC_ALL=C echo "${@//[![:word:]]/_}"; }
-fi
-
# Make a sane PATH
_PREFIX=@PREFIX@
_PKG_PREFIX=@PKG_PREFIX@
diff --git a/src/librc/librc.h b/src/librc/librc.h
index d2501c06..311793f8 100644
--- a/src/librc/librc.h
+++ b/src/librc/librc.h
@@ -48,6 +48,7 @@
#include <limits.h>
#include <paths.h>
#include <regex.h>
+#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>