Re: Compiling daemontools
Dean Anderson <[email protected]> Mon, 19 Apr 2010 17:55:29 -0400 (EDT)
| 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. <errno.h> will define errno to do the right thing for your thread model. When I get a new distribution ready, I'll be sure to have this fixed. --Dean On Mon, 19 Apr 2010, Miles Wilton wrote: > Hi, > > I had to alter src/error.h to get daemontools to compile on openSuSE: > > Replaced the line > > extern int errno; > > with > > #include <errno.h> > > Thanks, > > Miles. > > -- Av8 Internet Prepared to pay a premium for better service? www.av8.net faster, more reliable, better service 617 256 5494