On Thursday 11 April 2013 00:00:14 David Gibson wrote: > On Wed, Apr 10, 2013 at 02:29:10PM -0400, Mike Frysinger wrote: > > This starts a new usage framework and then cuts fdtdump over to it. > > Now we can do `fdtdump -h` and get something useful back. > > Hrm. The problem is that the new scheme relies on getopt_long(), > which is a GNU extension. I'd like to have dtc and associated tools > compilable on FreeBSD as well as Linux.
i don't run FreeBSD myself, but according to their own website, it looks like getopt_long() is available ? http://www.freebsd.org/cgi/man.cgi?query=getopt_long&apropos=0&sektion=3&manpath=FreeBSD+9.1- RELEASE&arch=default&format=html HISTORY The getopt_long() and getopt_long_only() functions first appeared in the GNU libiberty library. The first BSD implementation of getopt_long() appeared in NetBSD 1.5, the first BSD implementation of getopt_long_only() in OpenBSD 3.3. FreeBSD first included getopt_long() in FreeBSD 5.0, getopt_long_only() in FreeBSD 5.2. i'm assuming you don't need to support <FreeBSD 5.0 :) -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss