On Wed, Mar 9, 2011 at 8:59 AM, Drasko DRASKOVIC
<[email protected]> wrote:
> I still do not get who is to define __USE_XOPEN_EXTENDED macro ?
> My compiler does not do it, neider my uClinux Makefile.

It is defined in uClibc's features.h. You should never be manually
defining this macro. Instead, your application source or Makefile
should be defining the appropriate feature macros as described in the
feature_test_macros man page, and features.h will then define the
above based on those features.

> Would that say that I have to define it explicitly by changing uClinux
> Makefile and passing the defines to copiler line options ?

No. uClibc always includes the usleep function definition, no defines
are needed for that. The only defines needed are in your application
before it includes the header files, in order to control visibility of
the usleep function prototype.

> Similar when I compile apps, I always have to explicitly add -D_XOPEN_SOURCE ?

That is the correct way to do it (or #define _XOPEN_SOURCE at the top
of your application source file).
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to