boto/boto — Issue #612: Fails to compile on Solaris, simple one line fix
Author: coder-monkey
Created: 2012-03-02 22:02:32+00:00
State: open

I was unable to compile on Solaris 11 out of the box because of this define in
util/include/platforms/unix/axutil_unix.h:

extern int usleep (__useconds_t __useconds);

__useconds_t is a non-POSIX define and doesn't work on all platforms.

I added:

#ifdef __useconds_t
extern int usleep (__useconds_t __useconds);
#endif

As a guard around this definition, and everything compiled just fine, but that's possibly the wrong
guard. Since I don't know the history of why this was added it's hard to say why it should be there.

Once I fixed this is compiled perfectly.