From 3da98cb19112fe98612035792f68fead8c2d6ec5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 13 Dec 2018 18:52:45 +0100 Subject: [PATCH] s3:lib: Fix checking for config.h #define in system.c Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- source3/lib/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/system.c b/source3/lib/system.c index 00dd21ccbd6..9dd04ca5e3d 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -580,7 +580,7 @@ char *sys_getwd(void) { #ifdef GETCWD_TAKES_NULL return getcwd(NULL, 0); -#elif HAVE_GETCWD +#elif defined(HAVE_GETCWD) char *wd = NULL, *s = NULL; size_t allocated = PATH_MAX; -- 2.11.4.GIT