From 134f34020d1336f8c1d85722dcce607482757d7f Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 13 Oct 2007 13:58:51 +0000 Subject: [PATCH] Make FreeBSD happy, and fix inverted guard. svn path=/main/branches/prefix/; revision=8111 --- src/chpathtool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chpathtool.c b/src/chpathtool.c index 995af13d4..07c1d256a 100644 --- a/src/chpathtool.c +++ b/src/chpathtool.c @@ -13,6 +13,7 @@ */ #include +#include #include #include #include @@ -20,7 +21,9 @@ #include #include #include +#ifdef HAVE_ALLOCA_H #include +#endif #include /* Don't allocate too much, or you'll be paying for waiting on IO, @@ -207,7 +210,7 @@ int dirwalk(char *src, char *srcp, char *trg, char *trgp) { S_ISBLK(s.st_mode) || S_ISCHR(s.st_mode) || S_ISFIFO(s.st_mode) || -#ifndef _POSIX_C_SOURCE +#ifdef _POSIX_C_SOURCE S_ISWHT(s.st_mode) || #endif S_ISSOCK(s.st_mode) -- 2.26.2