From b1ae7b78bd57c60451e56c4abf738c69245b2b0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Vasseur?= Date: Thu, 7 Aug 2014 17:49:24 +0200 Subject: [PATCH] make clearenv available with _BSD_SOURCE glibc declares clearenv under _BSD_SOURCE, some applications might depend on it being available this way. --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index f034c6e5..db569d97 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -144,12 +144,12 @@ int mkostemps (char *, int, int); void *valloc (size_t); void *memalign(size_t, size_t); int getloadavg(double *, int); +int clearenv(void); #define WCOREDUMP(s) ((s) & 0x80) #define WIFCONTINUED(s) ((s) == 0xffff) #endif #ifdef _GNU_SOURCE -int clearenv(void); int ptsname_r(int, char *, size_t); char *ecvt(double, int, int *, int *); char *fcvt(double, int, int *, int *); -- 2.25.1