summaryrefslogtreecommitdiffstats
path: root/doc/README.bus_vcxk
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2012-06-28 08:01:58 +0200
committerWolfgang Denk <wd@denx.de>2012-07-02 20:21:49 +0200
commit558cd995d6d3eaa94fb342d142289a1fa2f76ba3 (patch)
treee74c3cc9c925f9ee15eff4adc75775203c21f0e4 /doc/README.bus_vcxk
parent97e305cfc19c26e762e0c9d00a164db81fe23dff (diff)
downloadtalos-obmc-uboot-558cd995d6d3eaa94fb342d142289a1fa2f76ba3.tar.gz
talos-obmc-uboot-558cd995d6d3eaa94fb342d142289a1fa2f76ba3.zip
tools/mkenvimage.c: fix basename(3) usage
Use the POSIX variant of basename due to BSD systems (e.g. OS X) do not provide GNU version of basename(3). It is save to use the POSIX variant here cause we do never use argv[0] later on which may be modified by the basename(3) POSIX variant. On systems providing GNU variant the GNU variant should be used since string.h is included before libgen.h. Therefore let the _GNU_SOURCE as is. This patch fixes following warning (on OS X): ---8<--- mkenvimage.c: In function ‘main’: mkenvimage.c:105: warning: implicit declaration of function ‘basename’ mkenvimage.c:105: warning: assignment makes pointer from integer without a cast --->8--- Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> cc: Keith Mok <ek9852@gmail.com>
Diffstat (limited to 'doc/README.bus_vcxk')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud