backend/pixma_bjnp: Replace index() with strchr()
PATCH 1/1 backend/pixma_bjnp: Replace index() with strchr()
Hi,
This patch replaces the obsolete index() function with strchr() in sane-backends code. I have also filed a bug upstream
https://alioth.debian.org/tracker/index.php?func=detail&aid=313563&group_id=30186&atid=410366
I don't know if you want to include this patch on buildroot before upstream does, but it may be useful for people wondering why sane-backend does not build on certain systems. The index() and rindex() functions are only exported if uClibc is configured with UCLIBC_SUSV3_LEGACY_MACROS. This problem has also been discussed in the past:
http://lists.busybox.net/pipermail/buildroot/2007-June/015201.html
Signature · 5 lines
markos -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sane-backends-1.0.22-index-to-strchr.patch URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120305/7f462654/attachment-0001.ksh>
PATCH 1/1 backend/pixma_bjnp: Replace index() with strchr()
Quoted 7 lines · Markos Chandras
Hi,
This patch replaces the obsolete
index()function withstrchr()in sane-backends code. I have also filed a bug upstreamhttps://alioth.debian.org/tracker/index.php?func=detail&aid=313563&group_id=30186&atid=410366
Quoted 9 lines
I don't know if you want to include this patch on buildroot before upstream does, but it may be useful for people wondering why sane-backend does not build on certain systems. The
index()andrindex()functions are only exported if uClibc is configured withUCLIBC_SUSV3_LEGACY_MACROS. This problem has also been discussed in the past:http://lists.busybox.net/pipermail/buildroot/2007-June/015201.html
This patch is now in sane-backends git repository
Signature · 1 line
markos