missing glibc #defines in getopt.h

Jeff Johnston jjohnstn@redhat.com
Wed Oct 15 22:27:00 GMT 2008


Joel Sherrill wrote:
> Hi,
>
> I am porting some code from Linux to RTEMS
> and noticed that the following values for
> "has_arg" are not included in the newlib
> getopt.h.
>
>
> # define no_argument            0
> # define required_argument      1
> # define optional_argument      2
>
> It is easy enough to add them but do they need
> to protected by an ifdef of any sort?
>
They are already there.  A change was made 03/02/2008 to add them.  I'm 
not sure why you don't see them.

-- Jeff J.



More information about the Newlib mailing list