Re: Compiling daemontools
Laurent Bercot <[email protected]> Tue, 20 Apr 2010 21:03:17 +0200
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
> Yes. That is a obsolete method to link in errno. Multithreaded systems > need errno to be thread-specific, and so the interface to errno was > changed some time ago. There isn't an extern int errno anymore. The > anachronism 'extern errno' shouldn't link on any system, and doesn't on > most systems. But its a common thing found in older code. http://cr.yp.to/docs/unixport.html#errno Single Unix v3 states that #include <errno.h> is the right way to declare errno, so future software should indeed conform to that, but still, maintaining "extern int errno" compatibility for single-threaded programs wasn't hard and breaking it forcefully is a debatable design decision from the glibc maintainers. (If only that was their only debatable design decision. :)) -- Laurent