From 9e1c0b78fc26860b366f45631cd0170d79265c3f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 16 Jul 2017 12:48:41 -0400 Subject: Fix dtch portability --- curtis/.bin/dtch.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'curtis') diff --git a/curtis/.bin/dtch.c b/curtis/.bin/dtch.c index ac7164fd..2c19e1d2 100755 --- a/curtis/.bin/dtch.c +++ b/curtis/.bin/dtch.c @@ -1,7 +1,7 @@ #if 0 set -e bin=$(dirname $0) -cc -Wall -Wextra -pedantic $@ -o $bin/dtch $0 +cc -Wall -Wextra -pedantic $@ -lutil -o $bin/dtch $0 ln -f $bin/dtch $bin/atch exit #endif @@ -22,7 +22,14 @@ exit #include #include #include + +#if defined __FreeBSD__ +#include +#elif defined __linux__ +#include +#else #include +#endif static struct passwd *getUser(void) { uid_t uid = getuid(); -- cgit 1.4.1