[BusyBox] adjtimex Compile problems with glibc
Uwe Beutin
uwe at imbrium.de
Thu Jul 11 11:47:03 UTC 2002
On Thu, 11 Jul 2002, Erik Andersen wrote:
> Your toolchain doesn't understand what to do with the __THROW
> directive. You should have an include/sys/cdefs.h header file
> that included the following:
>
> /* GCC can always grok prototypes. For C++ programs we add
> * throw() to help it optimize the function calls. But this
> * works only with gcc 2.8.x and egcs. */
> # if defined __cplusplus && __GNUC_PREREQ (2,8)
> # define __THROW throw ()
> # else
> # define __THROW
> # endif
>
> So the C library included with your toolchain is broken.
Weird stuff. Even though sys/cdefs.h is included I had to #define
__THROW in the locale.h, which is not nice but I don't know why it just
does not include that in cdefs.h itself.
Sometimes it just gets all too confusing with this cross-compiling and
library stuff...
Thank you for your help,
Uwe
More information about the busybox
mailing list