summaryrefslogtreecommitdiff
path: root/tests/mod-userdir.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mod-userdir.t')
-rwxr-xr-xtests/mod-userdir.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mod-userdir.t b/tests/mod-userdir.t
index 59990743..1c669942 100755
--- a/tests/mod-userdir.t
+++ b/tests/mod-userdir.t
@@ -1,4 +1,10 @@
#! /usr/bin/perl -w
+BEGIN {
+ # add current source dir to the include-path
+ # we need this for make distcheck
+ (my $srcdir = $0) =~ s#/[^/]+$#/#;
+ unshift @INC, $srcdir;
+}
use strict;
use IO::Socket;