aboutsummaryrefslogtreecommitdiffstats
path: root/lib/blkid/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/blkid/cache.c')
-rw-r--r--lib/blkid/cache.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/blkid/cache.c b/lib/blkid/cache.c
index e2ccafd2..2b818868 100644
--- a/lib/blkid/cache.c
+++ b/lib/blkid/cache.c
@@ -10,9 +10,6 @@
* %End-Header%
*/
-#if HAVE_SECURE_GETENV
-#define _GNU_SOURCE
-#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -51,9 +48,7 @@ static char *safe_getenv(const char *arg)
#endif
#endif
-#if defined(HAVE_SECURE_GETENV)
- return secure_getenv(arg);
-#elif defined(HAVE___SECURE_GETENV)
+#ifdef HAVE___SECURE_GETENV
return __secure_getenv(arg);
#else
return getenv(arg);