From 16a2cffc1131a1d9637ac3d10edfa983bfb366a8 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 8 Aug 2021 15:15:51 +0300 Subject: [PATCH] utils: use _GNU_SOURCE for S_ISLINK on freebsd Unbreak FreeBSD build. Fixes: #2079. --- lib/utils/mu-util.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/utils/mu-util.c b/lib/utils/mu-util.c index 1742be61..076cee7f 100644 --- a/lib/utils/mu-util.c +++ b/lib/utils/mu-util.c @@ -1,7 +1,5 @@ -/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/ /* -** -** Copyright (C) 2008-2016 Dirk-Jan C. Binnema +** Copyright (C) 2008-2021 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by @@ -19,13 +17,11 @@ ** */ -#if HAVE_CONFIG_H #include -#endif /*HAVE_CONFIG_H*/ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE (500) -#endif /*_XOPEN_SOURCE*/ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif /*_GNU_SOURCE*/ #include "mu-util.h" #ifdef HAVE_WORDEXP_H