diff options
author | midipix <writeonce@midipix.org> | 2016-09-18 23:59:03 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-19 00:11:04 -0400 |
commit | c67e64bc2f3e482943ef699d1010499fa8ac642b (patch) | |
tree | 596e1b71e61a925d94b5103ad1f1b00c361a9789 /src/helper | |
parent | e7323083cef75db971720fd4367c78cfc3ec4d08 (diff) | |
download | slibtool-c67e64bc2f3e482943ef699d1010499fa8ac642b.tar.bz2 slibtool-c67e64bc2f3e482943ef699d1010499fa8ac642b.tar.xz |
driver: accommodate hosts that occasionally use '-portbld-' in their triple.
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/slbt_dump_machine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c index b062fb1..0704386 100644 --- a/src/helper/slbt_dump_machine.c +++ b/src/helper/slbt_dump_machine.c @@ -56,6 +56,7 @@ int slbt_dump_machine( int fd[2]; FILE * fmachine; char * newline; + char * mark; char check[2]; char program[PATH_MAX]; @@ -108,5 +109,10 @@ int slbt_dump_machine( close(fd[1]); } + /* support the portbld <--> unknown synonym */ + if (newline) + if ((mark = strstr(machine,"-portbld-"))) + memcpy(mark,"-unknown",8); + return newline ? 0 : -1; } |