toolchain/glibc: update to latest 2.26 commit
[openwrt/openwrt.git] / toolchain / glibc / patches / 100-fix_cross_rpcgen.patch
index 6a5e537b77a6a7c780b5ed44dbe5e9f172468a54..f10efcc5d65cf9d80cfddeecd06877a4b3ba963e 100644 (file)
@@ -38,7 +38,7 @@
 +++ b/sunrpc/rpc_main.c
 @@ -958,9 +958,10 @@ mkfile_output (struct commandline *cmd)
        abort ();
-       temp = rindex (cmd->infile, '.');
+       temp = strrchr (cmd->infile, '.');
        cp = stpcpy (mkfilename, "Makefile.");
 -      if (temp != NULL)
 -      *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0';