mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] make clearenv available with _BSD_SOURCE
@ 2014-08-07 15:49 Clément Vasseur
  2014-08-08  4:46 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Vasseur @ 2014-08-07 15:49 UTC (permalink / raw)
  To: musl

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 f034c6e..db569d9 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.0.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] make clearenv available with _BSD_SOURCE
  2014-08-07 15:49 [PATCH] make clearenv available with _BSD_SOURCE Clément Vasseur
@ 2014-08-08  4:46 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2014-08-08  4:46 UTC (permalink / raw)
  To: musl

On Thu, Aug 07, 2014 at 05:49:24PM +0200, Clément Vasseur wrote:
> glibc declares clearenv under _BSD_SOURCE, some applications might
> depend on it being available this way.

Committed.

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-08  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-07 15:49 [PATCH] make clearenv available with _BSD_SOURCE Clément Vasseur
2014-08-08  4:46 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).